-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
63 lines (57 loc) · 1.25 KB
/
azure-pipelines.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
# Go
# Build and test your Go application.
# Add steps that save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/go
resources:
containers:
- container: go-1.11.2
image: golang:1.11.2
- container: go-1.11.1
image: golang:1.11.1
variables:
- group: sample
trigger:
- master
jobs:
- job: A
pool:
name: Hosted Ubuntu 1604
steps:
- script: |
echo "-> $(name)"
mkdir a
touch a/aaaa
- task: PublishPipelineArtifact@0
inputs:
artifactName: artifact_a
targetPath: a
- job: B
pool:
name: Hosted Ubuntu 1604
steps:
- script: |
mkdir b
touch b/bbbb
- task: PublishPipelineArtifact@0
inputs:
artifactName: artifact_b
targetPath: b
- job: Containerize
pool:
name: Hosted Ubuntu 1604
dependsOn:
- A
- B
steps:
- task: DownloadPipelineArtifact@0
inputs:
artifactName: artifact_a
targetPath: .
- task: DownloadPipelineArtifact@0
inputs:
artifactName: artifact_b
targetPath: .
- script: |
find .
pwd
docker build -t foo .