These examples require an Artifactory Integration or JFrog Platform Access Token Integration .
Example 1
This example uses the following tags:
sourceArtifactorypatternrecursiveoffset
resources:
- name: FileSpec_0014
type: FileSpec
configuration:
sourceArtifactory: s_artifactory
pattern: "test-local/setup/"
recursive: false
offset: 1@3
pipelines:
- name: pipelines_FLSPEC_0014
steps:
- name: step_FLSPEC_0014
type: PowerShell
configuration:
nodePool: win_2019
inputResources:
- name: FileSpec_0014
execution:
onExecute:
- write_output "executing step..."Example 2
This example uses the following tags:
sourceArtifactorypatternrecursivelimitsortBysortOrdertarget
resources:
- name: FileSpec_0013
type: FileSpec
configuration:
sourceArtifactory: s_artifactory
pattern: "test-local/setup/"
recursive: false
limit: 1@3
sortBy:
- created
sortOrder: invalid
target: 'C:\Users\pipelines\Desktop\'
pipelines:
- name: pipelines_FLSPEC_0013
steps:
- name: step_FLSPEC_0013
type: PowerShell
configuration:
nodePool: win_2019
inputResources:
- name: FileSpec_0013
execution:
onExecute:
- write_output "executing step..."Example 3
This example uses the following tags:
sourceArtifactorypatternrecursivebuildNamebuildNumber
resources:
- name: FileSpec_0010
type: FileSpec
configuration:
sourceArtifactory: s_artifactory
pattern: "test-local/setup/"
recursive: false
buildName: pipelines_api
buildNumber: 1@3
pipelines:
- name: pipelines_FLSPEC_0010
steps:
- name: step_FLSPEC_0010
type: PowerShell
configuration:
nodePool: win_2019
inputResources:
- name: FileSpec_0010
execution:
onExecute:
- write_output "executing step..."Example 4
This example uses the following tags:
sourceArtifactorypatternrecursivearchiveEntries
resources:
- name: FileSpec_0007
type: FileSpec
configuration:
sourceArtifactory: s_artifactory
pattern: "test-local/setup/"
recursive: false
archiveEntries: "#/artifactory"
pipelines:
- name: pipelines_FLSPEC_0007
steps:
- name: step_FLSPEC_0007
type: PowerShell
configuration:
nodePool: win_2019
inputResources:
- name: FileSpec_0007
execution:
onExecute:
- write_output "executing step..."Example 5
This example uses the following tags:
sourceArtifactoryaql
resources:
- name: Get_Files
type: FileSpec
configuration:
sourceArtifactory: s_artifactory
aql: "{'repo': 'docker-local'}"
pipelines:
- name: PropertyDemo
steps:
- name: ArtifactoryFiles
type: Bash
configuration:
inputResources:
- name: Get_Files
execution:
onExecute:
- cat $HOME/.jfrog/logs/jfrog-cli*
- ls