-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinteg-test-promote.pipeline.yml
94 lines (84 loc) · 3.02 KB
/
integ-test-promote.pipeline.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
resources:
pipelines:
- pipeline: integ_test_promote
source: pre-integ-test
trigger: true
trigger: none
pr: none
stages:
- stage: integration_test
displayName: Integration test
jobs:
- template: integ-test-promote-template.yml
parameters:
TASK_VERSION: ['0', '1']
- stage: publish_prerelease
displayName: Publish prerelease
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
pool:
vmImage: ubuntu-latest
jobs:
- deployment: publish_prerelease
environment: prerelease
strategy:
runOnce:
deploy:
steps:
- checkout: none
- task: DownloadPipelineArtifact@2
displayName: Get stored extension
inputs:
source: specific
project: b3d35465-d584-454b-a4e9-e60757510c12
pipeline: 6
runVersion: latest
artifact: extension
path: $(Build.StagingDirectory)
- task: TfxInstaller@2
displayName: Install tfx-cli
inputs:
version: v0.7.x
- task: PublishAzureDevOpsExtension@2
displayName: Publish prerelease
inputs:
connectTo: VsTeam
connectedServiceName: MathWorks
fileType: vsix
extensionTag: -prerelease
extensionVisibility: private
vsixFile: $(Build.StagingDirectory)/*.vsix
updateTasksVersion: false
- stage: publish_release
displayName: Publish release
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
pool:
vmImage: ubuntu-latest
jobs:
- deployment: publish_release
environment: release
strategy:
runOnce:
deploy:
steps:
- checkout: none
- task: DownloadPipelineArtifact@2
displayName: Get stored extension
inputs:
source: specific
project: b3d35465-d584-454b-a4e9-e60757510c12
pipeline: 6
runVersion: latest
artifact: extension
path: $(Build.StagingDirectory)
- task: TfxInstaller@2
displayName: Install tfx-cli
inputs:
version: v0.7.x
- task: PublishAzureDevOpsExtension@2
displayName: Publish release
inputs:
connectTo: VsTeam
connectedServiceName: MathWorks
fileType: vsix
vsixFile: $(Build.StagingDirectory)/*.vsix
updateTasksVersion: false