-
Notifications
You must be signed in to change notification settings - Fork 3
/
azure-pipelines-current.yml
135 lines (120 loc) · 3.25 KB
/
azure-pipelines-current.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
stages:
- stage: stage1
jobs:
- job: Job1
timeoutInMinutes: 2
cancelTimeoutInMinutes: 2
pool:
name: 'Default'
steps:
- task: PublishBuildArtifacts@1
displayName: Publish TestFolder
inputs:
pathToPublish: testFolder
artifactName: Artifact1
- task: PublishBuildArtifacts@1
displayName: Publish yml
inputs:
pathToPublish: azure-pipelines.yml
artifactName: Artifact2
- task: PublishBuildArtifacts@1
displayName: Publish AzCopy Files
inputs:
pathToPublish: Files/azcopyFiles
artifactName: AzCopy
artifactType: filePath
targetPath: \\kalyan-dev\share\agentartifactfolder
- job: Download_all_by_default
displayName: Download all artifacts by default
dependsOn: Job1
pool:
name: 'Default'
steps:
- script: echo Will download all artifacts uploaded in Job1
- powershell: |
gci env:
- job: Download_only_specific_artifact
displayName: Download only specific artifact
dependsOn: Job1
pool:
name: 'Default'
steps:
- download: current
artifact: Artifact1
continueOnError: true
- download: current
artifact: AzCopy
patterns: '**/*.txt'
continueOnError: true
- job: Download_none
displayName: Don't download any artifact using none
dependsOn: Job1
pool:
name: 'Default'
steps:
- download: none
#----- patterns begin --------------------#
- job: Download_pattern_literal
displayName: Download pattern literal
dependsOn: Job1
pool:
name: 'Default'
steps:
- download: current
artifact: Artifact1
patterns: '**/*.txt'
- job: Download_pattern_sequence
displayName: Download pattern sequence
dependsOn: Job1
pool:
name: 'Default'
steps:
- download: current
artifact: Artifact1
patterns: |
**/*.cmd
**/*.ps1
#----- patterns end --------------------#
- job: Download_to_relative_custom_location
displayName: Download to relative custom location
dependsOn: Job1
pool:
name: 'Default'
steps:
- script: echo $(System.DefaultWorkingDirectory)
- download: current
artifact: Artifact1
path: "foo/bar"
- job: Download_apply_common_setting
displayName: Download apply commen setting for all artifact
dependsOn: Job1
pool:
name: 'Default'
steps:
- download: current
patterns: |
**/*.cmd
**/*.ps1
- stage: stage2
dependsOn: stage1
jobs:
- job: MyJobFromStage2
displayName: download all artifacts from stage1 jobs
pool:
name: 'Default'
steps:
- script: echo I am stage2 Job
- job: DownloadTaskWithCustomFields_disabled
displayName: download task with custome fields - disabled
pool: 'Default'
steps:
- download: current
artifact: Artifact1
enabled: false
#- job: Invalid_ArtifactName_provided
# displayName: Download and try to fail user task when wrong info is given
# pool:
# name: 'Default'
# steps:
# - download: current
# artifact: Artifact1000