Skip to content

Commit de8230e

Browse files
authored
Merge pull request #3377 from microsoftgraph/feat/security-pipeline-fix
adding template context
2 parents a37c29d + b70669d commit de8230e

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,17 @@ extends:
118118
- deployment: 'DeployToInternalFeed'
119119
displayName: 'Deploy to Internal Feed'
120120
environment: 'PowerShellInternalFeed'
121+
templateContext:
122+
type: releaseJob
123+
isProduction: true
124+
inputs:
125+
- input: pipelineArtifact
126+
artifactName: drop
127+
targetPath: '$(System.DefaultWorkingDirectory)/drop'
121128
strategy:
122129
runOnce:
123130
deploy:
124131
steps:
125-
- checkout: self
126-
- task: DownloadPipelineArtifact@2
127-
displayName: 'Download Build Artifacts'
128-
inputs:
129-
buildType: 'current'
130-
targetPath: '$(System.DefaultWorkingDirectory)'
131132
- task: 1ES.PublishNuget@1
132133
displayName: 'Publish NuGet to feed'
133134
inputs:
@@ -144,16 +145,17 @@ extends:
144145
- deployment: 'DeployToPowerShellGallery'
145146
displayName: 'Deploy to PowerShell Gallery'
146147
environment: 'PowerShellGallery'
148+
templateContext:
149+
type: releaseJob
150+
isProduction: true
151+
inputs:
152+
- input: pipelineArtifact
153+
artifactName: drop
154+
targetPath: '$(System.DefaultWorkingDirectory)/drop'
147155
strategy:
148156
runOnce:
149157
deploy:
150158
steps:
151-
- checkout: self
152-
- task: DownloadPipelineArtifact@2
153-
displayName: 'Download Build Artifacts'
154-
inputs:
155-
buildType: 'current'
156-
targetPath: '$(System.DefaultWorkingDirectory)'
157159
- task: 1ES.PublishNuget@1
158160
displayName: 'Publish NuGet to feed'
159161
inputs:

0 commit comments

Comments
 (0)