Cloud customer?
Start for Free >
Upgrade in MyJFrog >
What's New in Cloud >

Search





Overview

FileSpec resource specifies a File Spec, which provides the details of files to upload or download from Artifactory.


Specifying a FileSpec in a step's inputResources will download matching files and make them available to that step.

Specify a FileSpec in a step's outputResources to signal a subsequent step that is dependent on that FileSpec to trigger. No file upload will occur.


Page Contents

Usage

resources:
  - name: 		<string>
    type: 		FileSpec
    configuration:      
      sourceArtifactory: 	artifactoryIntegration
      pattern: 				<string>   # required, either this or aql
      aql: 					<string>   # required, either this or pattern
      target: 				<string>   # required to upload files
      props: 				<string>   # optional
      recursive: 			<boolean>  # optional
      flat: 				<boolean>  # optional
      excludePatterns: 		<string>   # optional
      archiveEntries: 		<string>   # optional
      buildName: 			<string>   # optional
      buildNumber: 			<integer>  # optional
      sortBy: 				<string>   # optional
      sortOrder: 			<string>   # optional
      limit: 				<integer>  # optional
      offset: 				<integer>  # optional

Tags

name 

An alphanumeric string (underscores are permitted) that identifies the resource.

type 

Must be FileSpec for this resource type.

configuration

Specifies all configuration selections for the resource.

Tag

Description

Required/Optional
sourceArtifactoryThe name of the Artifactory Integration integration.Required

For the remaining values, see the Artifactory topic Using File Specs.

Environment Variables

Whenever FileSpec is used in a step, a set of environment variables is automatically made available that you can use in your step.

Environment Variable

Description

res_<resource_name>_resourcePath

Path to where the File Spec is downloaded to 
res_<resource_name>_name
Name of the resource
res_<resource_name>_sourceArtifactory
The name of the Artifactory integration
  • No labels
Copyright © 2021 JFrog Ltd.