-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines-16.yml
55 lines (55 loc) · 1.85 KB
/
azure-pipelines-16.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
stages:
- stage: Build
displayName: Build image
jobs:
- job: Build
displayName: Build
steps:
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: artifact1'
inputs:
PathtoPublish: README.md
ArtifactName: artifact1
- stage: PostBuildCleanup
displayName: Post Build Cleanup
jobs:
- job: Cleanup
steps:
- task: CmdLine@2
inputs:
script: |
echo Write your commands here
echo Hello world
- stage: TagBuildWithTested
displayName: Tag tested Build
jobs:
- job: TagBuildWithTested
displayName: Tag tested Build
steps:
- task: CmdLine@2
continueOnError: true
inputs:
script: |
echo Write your commands here
echo Hello world
- task: PowerShell@2
inputs:
targetType: inline
script: |
Write-Host "##vso[build.addbuildtag]tested"
- stage: TagBuildWithProd
displayName: Tag Prod build
jobs:
- job: TagBuildWithProd
displayName: Tag Prod build
steps:
- task: CmdLine@2
inputs:
script: |
echo Write your commands here
echo Hello world
- task: PowerShell@2
inputs:
targetType: inline
script: |
Write-Host "##vso[build.addbuildtag]prod"