YAML Schema
2022世界杯阿根廷预选赛赛程资源:name:type: RemoteFile configuration: source: fileLocation: # optional fileName: # optional fileDateTime: # optional
Tags
name
Analphanumericstring (underscores are permitted) that identifies the resource.
类型
Must beRemoteFile
for this resource type.
configuration
Specifies all configuration selections for the resource.
Tag |
Description |
Required/Optional |
---|---|---|
source |
The name of an integration of one the following types: |
Required |
fileLocation |
Directory path on the remote file server where the file is located |
Optional |
文件名 |
The name of the file |
Optional |
fileDateTime |
The date and time of the file | Optional |
Environment Variables
WheneverRemoteFile
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_ |
Name of the resource |
res_ |
Name of the integration the file is associated with |
res_ |
The directory containing files for the resource |
res_ |
The name of the file |
res_ |
The date and time of the file |
Examples
- This examples requires anArtifactory Integration.
- The Pipelines DSL for this example is available inthis repositoryin theJFrogGitHub account.
2022世界杯阿根廷预选赛赛程资源:name: RemoteFile_1 type: RemoteFile configuration: source: s_artifactory fileLocation: example-repo-local/setup/help # optional fileName: something.txt # optional fileDateTime: 19/12/19 # optional pipelines: - name: pipelines_1 steps: - name: REFILE_1 type: PowerShell configuration: nodePool: win_2019 integrations: - name: s_artifactory outputResources: - name: RemoteFile_1 execution: onExecute: - write-output "executing step..." - jfrog rt dl example-repo-local/setup/test.sh