These examples require an Artifactory Integration or JFrog Platform Access Token Integration .
The Pipelines DSL for these examples are available in this repository in the JFrog GitHub account.
Example 1
This example uses the following tags:
sourceArtifactory
pattern
recursive
offset
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:
sourceArtifactory
pattern
recursive
limit
sortBy
sortOrder
target
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:
sourceArtifactory
pattern
recursive
buildName
buildNumber
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:
sourceArtifactory
pattern
recursive
archiveEntries
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:
sourceArtifactory
aql
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