-
Notifications
You must be signed in to change notification settings - Fork 21
/
azure-pipelines.yml
91 lines (86 loc) · 2.7 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
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
name: 1.$(Year:yy).1$(Month)$(DayOfMonth).$(Rev:r)
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
stages:
- stage: Build
jobs:
- job: Build
continueOnError: false
steps:
- task: TfxInstaller@3
inputs:
version: 'v0.8.x'
- task: PackageAzureDevOpsExtension@3
inputs:
rootFolder: '$(Build.SourcesDirectory)'
outputPath: '$(Build.ArtifactStagingDirectory)/Extension'
extensionVersion: '$(Build.BuildNumber)'
updateTasksVersion: false
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)/Extension'
artifact: 'Extension'
publishLocation: 'pipeline'
- stage: Test
condition: succeeded('Build')
jobs:
- deployment: Deploy
continueOnError: false
environment: Marketplace Test
strategy:
runOnce:
deploy:
steps:
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
targetPath: '$(Pipeline.Workspace)'
- task: TfxInstaller@3
inputs:
version: 'v0.8.x'
- task: PublishAzureDevOpsExtension@3
inputs:
connectTo: 'VsTeam'
connectedServiceName: 'Marketplace Test'
fileType: 'vsix'
vsixFile: '$(Pipeline.Workspace)/Extension/*.vsix'
publisherId: 'mmajcica-test2'
extensionTag: '-test'
extensionName: 'Deploy SSRS - Test'
updateTasksVersion: false
extensionVisibility: 'private'
shareWith: 'mummy-test,actionlogementservices'
- task: InstallAzureDevOpsExtension@3
inputs:
connectTo: 'VsTeam'
connectedServiceName: 'Marketplace Test'
method: 'id'
publisherId: 'mmajcica-test2'
extensionId: 'deploy-ssrs'
extensionTag: '-test'
accounts: 'https://dev.azure.com/mummy-test'
- stage: Production
condition: and(succeeded('Test'), eq(variables['build.sourceBranch'], 'refs/heads/master'))
jobs:
- deployment: Deploy
continueOnError: false
environment: Marketplace
strategy:
runOnce:
deploy:
steps:
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
targetPath: '$(Pipeline.Workspace)'
- task: TfxInstaller@3
inputs:
version: 'v0.8.x'
- task: PublishAzureDevOpsExtension@3
inputs:
connectTo: 'VsTeam'
connectedServiceName: 'Marketplace'
fileType: 'vsix'
vsixFile: '$(Pipeline.Workspace)/Extension/*.vsix'