Skip to content

Commit 7f6432f

Browse files
Merge pull request #1978 from microsoft/mk/add-security-metadata
Fix: Adds missing security metadata to the pipeline
2 parents f64202b + 76d581b commit 7f6432f

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,13 @@ extends:
210210
dependsOn: build
211211
jobs:
212212
- deployment: deploy_hidi
213+
templateContext:
214+
type: releaseJob
215+
isProduction: true
216+
inputs:
217+
- input: pipelineArtifact
218+
artifactName: Nugets
219+
targetPath: '$(Pipeline.Workspace)'
213220
dependsOn: []
214221
environment: nuget-org
215222
strategy:
@@ -218,11 +225,6 @@ extends:
218225
pool:
219226
vmImage: ubuntu-latest
220227
steps:
221-
- task: DownloadPipelineArtifact@2
222-
displayName: Download nupkg from artifacts
223-
inputs:
224-
artifact: Nugets
225-
source: current
226228
- task: DownloadPipelineArtifact@2
227229
displayName: Download hidi executable from artifacts
228230
inputs:
@@ -264,6 +266,13 @@ extends:
264266
]'
265267

266268
- deployment: deploy_lib
269+
templateContext:
270+
type: releaseJob
271+
isProduction: true
272+
inputs:
273+
- input: pipelineArtifact
274+
artifactName: Nugets
275+
targetPath: '$(Pipeline.Workspace)'
267276
dependsOn: []
268277
environment: nuget-org
269278
strategy:
@@ -272,11 +281,6 @@ extends:
272281
pool:
273282
vmImage: ubuntu-latest
274283
steps:
275-
- task: DownloadPipelineArtifact@2
276-
displayName: Download nupkg from artifacts
277-
inputs:
278-
artifact: Nugets
279-
source: current
280284
- powershell: |
281285
$fileNames = "$(Pipeline.Workspace)/Nugets/Microsoft.OpenApi.Hidi.*.nupkg", "$(Pipeline.Workspace)/Nugets/Microsoft.OpenApi.Readers.*.nupkg", "$(Pipeline.Workspace)/Nugets/Microsoft.OpenApi.Workbench.*.nupkg"
282286
foreach($fileName in $fileNames) {
@@ -294,6 +298,13 @@ extends:
294298
publishFeedCredentials: 'OpenAPI Nuget Connection'
295299

296300
- deployment: deploy_readers
301+
templateContext:
302+
type: releaseJob
303+
isProduction: true
304+
inputs:
305+
- input: pipelineArtifact
306+
artifactName: Nugets
307+
targetPath: '$(Pipeline.Workspace)'
297308
dependsOn: deploy_lib
298309
environment: nuget-org
299310
strategy:
@@ -302,11 +313,6 @@ extends:
302313
pool:
303314
vmImage: ubuntu-latest
304315
steps:
305-
- task: DownloadPipelineArtifact@2
306-
displayName: Download nupkg from artifacts
307-
inputs:
308-
artifact: Nugets
309-
source: current
310316
- task: 1ES.PublishNuget@1
311317
displayName: 'NuGet push'
312318
inputs:

0 commit comments

Comments
 (0)