-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
91 lines (86 loc) · 2.62 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).$(DayOfYear).$(Rev:r)
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
stages:
- stage: Build
jobs:
- job: Build
continueOnError: false
steps:
- task: TfxInstaller@2
inputs:
version: 'v0.7.x'
- task: PackageAzureDevOpsExtension@2
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@2
inputs:
version: 'v0.7.x'
- task: PublishAzureDevOpsExtension@2
inputs:
connectTo: 'VsTeam'
connectedServiceName: 'Marketplace Test'
fileType: 'vsix'
vsixFile: '$(Pipeline.Workspace)/Extension/*.vsix'
publisherId: 'mmajcica-test2'
extensionTag: '-test'
extensionName: 'WinRm File Copy - Test'
updateTasksVersion: false
extensionVisibility: 'private'
shareWith: 'mummy-test'
- task: InstallAzureDevOpsExtension@2
inputs:
connectTo: 'VsTeam'
connectedServiceName: 'Marketplace Test'
method: 'id'
publisherId: 'mmajcica-test2'
extensionId: 'win-rm-file-copy'
extensionTag: '-test'
accounts: 'https://dev.azure.com/mummy-test'
- stage: Production
condition: succeeded('Test')
jobs:
- deployment: Deploy
continueOnError: false
environment: Marketplace
strategy:
runOnce:
deploy:
steps:
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
targetPath: '$(Pipeline.Workspace)'
- task: TfxInstaller@2
inputs:
version: 'v0.7.x'
- task: PublishAzureDevOpsExtension@2
inputs:
connectTo: 'VsTeam'
connectedServiceName: 'Marketplace'
fileType: 'vsix'
vsixFile: '$(Pipeline.Workspace)/Extension/*.vsix'