@@ -210,6 +210,13 @@ extends:
210
210
dependsOn : build
211
211
jobs :
212
212
- deployment : deploy_hidi
213
+ templateContext :
214
+ type : releaseJob
215
+ isProduction : true
216
+ inputs :
217
+ - input : pipelineArtifact
218
+ artifactName : Nugets
219
+ targetPath : ' $(Pipeline.Workspace)'
213
220
dependsOn : []
214
221
environment : nuget-org
215
222
strategy :
@@ -218,11 +225,6 @@ extends:
218
225
pool :
219
226
vmImage : ubuntu-latest
220
227
steps :
221
- - task : DownloadPipelineArtifact@2
222
- displayName : Download nupkg from artifacts
223
- inputs :
224
- artifact : Nugets
225
- source : current
226
228
- task : DownloadPipelineArtifact@2
227
229
displayName : Download hidi executable from artifacts
228
230
inputs :
@@ -264,6 +266,13 @@ extends:
264
266
]'
265
267
266
268
- deployment : deploy_lib
269
+ templateContext :
270
+ type : releaseJob
271
+ isProduction : true
272
+ inputs :
273
+ - input : pipelineArtifact
274
+ artifactName : Nugets
275
+ targetPath : ' $(Pipeline.Workspace)'
267
276
dependsOn : []
268
277
environment : nuget-org
269
278
strategy :
@@ -272,11 +281,6 @@ extends:
272
281
pool :
273
282
vmImage : ubuntu-latest
274
283
steps :
275
- - task : DownloadPipelineArtifact@2
276
- displayName : Download nupkg from artifacts
277
- inputs :
278
- artifact : Nugets
279
- source : current
280
284
- powershell : |
281
285
$fileNames = "$(Pipeline.Workspace)/Nugets/Microsoft.OpenApi.Hidi.*.nupkg", "$(Pipeline.Workspace)/Nugets/Microsoft.OpenApi.Readers.*.nupkg", "$(Pipeline.Workspace)/Nugets/Microsoft.OpenApi.Workbench.*.nupkg"
282
286
foreach($fileName in $fileNames) {
@@ -294,6 +298,13 @@ extends:
294
298
publishFeedCredentials : ' OpenAPI Nuget Connection'
295
299
296
300
- deployment : deploy_readers
301
+ templateContext :
302
+ type : releaseJob
303
+ isProduction : true
304
+ inputs :
305
+ - input : pipelineArtifact
306
+ artifactName : Nugets
307
+ targetPath : ' $(Pipeline.Workspace)'
297
308
dependsOn : deploy_lib
298
309
environment : nuget-org
299
310
strategy :
@@ -302,11 +313,6 @@ extends:
302
313
pool :
303
314
vmImage : ubuntu-latest
304
315
steps :
305
- - task : DownloadPipelineArtifact@2
306
- displayName : Download nupkg from artifacts
307
- inputs :
308
- artifact : Nugets
309
- source : current
310
316
- task : 1ES.PublishNuget@1
311
317
displayName : ' NuGet push'
312
318
inputs :
0 commit comments