This topic lists tags that can be used with UploadArtifact Pipeline steps. For more information on UploadArtifact Pipeline steps, see UploadArtifact.
name
An alphanumeric string (underscores are permitted) that identifies the step.
type
Must be UploadArtifact
for this step type.
configuration
Specifies all configuration selections for the step's execution environment. This step inherits the Bash/ PowerShell step configuration tags, including these pertinent tags:
Tag | Description of usage | Required/Optional |
---|---|---|
| Must specify an Artifactory Integration or JFrog Platform Access Token Integration . | Required |
| May specify a GitRepo, FileSpec, or RemoteFile resource containing the file(s) to be uploaded. One of each type may be specified. | Optional |
| Must specify a BuildInfo resource if If May also specify a FileSpec resource to be updated with the pattern and properties of the uploaded Artifact. | May be required |
In addition, these tags can be defined to support the step's native operation:
Tag | Description of usage | Required/Optional |
---|---|---|
targetPath | Path to upload the files, including repository name. | Required |
| Files to upload. If this is a relative path pattern, it is relative to the root of a GitRepo/FileSpec/RemoteFile input. Default is | Optional |
| Semi-colon separated properties for the uploaded artifact. For example: Properties | Optional |
| When set as Default is | Optional |
| When set as Default is | Optional |
| A module name for the Build Info. | Optional |
| A | Optional |
| When set as Default is true. | Optional |
| When set as Default is | Optional |
| When set as Default is | Optional |
| When set as Default is | Optional |
| Semi-colon separated patterns to exclude. | Optional |
| When set as Default is | Optional |
| A path under which to delete any existing files in Artifactory. | Optional |
| When set as Default is | Optional |
| When set as Default is | Optional |
| When set as Default is | Optional |
execution
Declares collections of shell command sequences to perform for pre- and post-execution phases:
Tag | Description of usage | Required/Optional |
---|---|---|
| Commands to execute in advance of the native operation | Optional |
| Commands to execute on successful completion | Optional |
| Commands to execute on failed completion | Optional |
| Commands to execute on any completion | Optional |
The actions performed for the onExecute
phase are inherent to this step type and may not be overridden.
Note
onExecute
, onStart
, onSuccess
, onFailure
, and onComplete
are reserved keywords. Using these keywords in any other context in your execution scripts can cause unexpected behavior.