@@ -17,8 +17,6 @@ variables:
17
17
value : ' 0.x'
18
18
- name : ' nodeVersion'
19
19
value : ' 16.x'
20
- - name : ' marketplaceServiceConnection'
21
- value : ' 24325a98-0d4b-4180-9936-c930a4156258'
22
20
23
21
stages :
24
22
- stage : ' Build'
@@ -48,13 +46,13 @@ stages:
48
46
- script : |
49
47
npm run build
50
48
51
- - task : TfxInstaller@4
49
+ - task : TfxInstaller@5
52
50
displayName : ' Use Node CLI for Azure DevOps'
53
51
inputs :
54
52
version : $(tfxVersion)
55
53
checkLatest : true
56
54
57
- - task : PackageAzureDevOpsExtension@4
55
+ - task : PackageAzureDevOpsExtension@5
58
56
displayName : ' Package Extension: $(Build.SourcesDirectory)'
59
57
name : ' packageStep'
60
58
inputs :
@@ -131,24 +129,12 @@ stages:
131
129
versionSpec : $(nodeVersion)
132
130
displayName : ' Install Node.js'
133
131
134
- - task : TfxInstaller@4
132
+ - task : TfxInstaller@5
135
133
displayName : ' Use Node CLI for Azure DevOps'
136
134
inputs :
137
135
version : $(tfxVersion)
138
136
checkLatest : true
139
137
140
- # - task: AzureCLI@2
141
- # displayName: 'Authenticate with Service Principal'
142
- # inputs:
143
- # azureSubscription: 'azure-devops-marketplace'
144
- # scriptType: 'pscore'
145
- # scriptLocation: 'inlineScript'
146
- # useGlobalConfig: true
147
- # inlineScript: |
148
- # $accessToken = az account get-access-token --resource 499b84ac-1321-427f-aa17-267ca6975798 --query "accessToken" --output tsv
149
- # write-host "##vso[task.setsecret]$accessToken"
150
- # write-host "##vso[task.setendpoint id=$env:MARKETPLACESERVICECONNECTION;field=authParameter;key=password]$accessToken"
151
-
152
138
- task : PublishAzureDevOpsExtension@5
153
139
name : ' publishDev'
154
140
inputs :
@@ -164,10 +150,10 @@ stages:
164
150
shareWith : ' jessehouwing-dev'
165
151
noWaitValidation : true
166
152
167
- - task : IsAzureDevOpsExtensionValid@4
153
+ - task : IsAzureDevOpsExtensionValid@5
168
154
inputs :
169
- connectTo : ' VsTeam '
170
- connectedServiceName : ' $(marketplaceServiceConnection) '
155
+ connectTo : ' AzureRM '
156
+ connectedServiceNameAzureRM : ' azure-devops-marketplace '
171
157
method : ' vsix'
172
158
vsixFile : ' $(publishDev.Extension.OutputPath)'
173
159
@@ -197,29 +183,17 @@ stages:
197
183
versionSpec : $(nodeVersion)
198
184
displayName : ' Install Node.js'
199
185
200
- - task : TfxInstaller@4
186
+ - task : TfxInstaller@5
201
187
displayName : ' Use Node CLI for Azure DevOps'
202
188
inputs :
203
189
version : $(tfxVersion)
204
190
checkLatest : true
205
191
206
- - task : AzureCLI@2
207
- displayName : ' Authenticate with Service Principal'
208
- inputs :
209
- azureSubscription : ' azure-devops-marketplace'
210
- scriptType : ' pscore'
211
- scriptLocation : ' inlineScript'
212
- useGlobalConfig : true
213
- inlineScript : |
214
- $accessToken = az account get-access-token --resource 499b84ac-1321-427f-aa17-267ca6975798 --query "accessToken" --output tsv
215
- write-host "##vso[task.setsecret]$accessToken"
216
- write-host "##vso[task.setendpoint id=$env:MARKETPLACESERVICECONNECTION;field=authParameter;key=password]$accessToken"
217
-
218
- - task : PublishAzureDevOpsExtension@4
192
+ - task : PublishAzureDevOpsExtension@5
219
193
name : ' publishProd'
220
194
inputs :
221
- connectTo : ' VsTeam '
222
- connectedServiceName : ' $(marketplaceServiceConnection) '
195
+ connectTo : ' AzureRM '
196
+ connectedServiceNameAzureRM : ' azure-devops-marketplace '
223
197
fileType : ' vsix'
224
198
vsixFile : ' $(Pipeline.Workspace)/vsix/$(extensionId).vsix'
225
199
publisherId : ' jessehouwing'
@@ -228,10 +202,10 @@ stages:
228
202
extensionVisibility : ' public'
229
203
noWaitValidation : true
230
204
231
- - task : IsAzureDevOpsExtensionValid@4
205
+ - task : IsAzureDevOpsExtensionValid@5
232
206
inputs :
233
- connectTo : ' VsTeam '
234
- connectedServiceName : ' $(marketplaceServiceConnection) '
207
+ connectTo : ' AzureRM '
208
+ connectedServiceNameAzureRM : ' azure-devops-marketplace '
235
209
method : ' vsix'
236
210
vsixFile : ' $(publishProd.Extension.OutputPath)'
237
211
0 commit comments