Skip to content

Commit b93b489

Browse files
committed
adding template context
1 parent a37c29d commit b93b489

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,18 @@ 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:
125132
- checkout: self
126-
- task: DownloadPipelineArtifact@2
127-
displayName: 'Download Build Artifacts'
128-
inputs:
129-
buildType: 'current'
130-
targetPath: '$(System.DefaultWorkingDirectory)'
131133
- task: 1ES.PublishNuget@1
132134
displayName: 'Publish NuGet to feed'
133135
inputs:
@@ -144,16 +146,18 @@ extends:
144146
- deployment: 'DeployToPowerShellGallery'
145147
displayName: 'Deploy to PowerShell Gallery'
146148
environment: 'PowerShellGallery'
149+
templateContext:
150+
type: releaseJob
151+
isProduction: true
152+
inputs:
153+
- input: pipelineArtifact
154+
artifactName: drop
155+
targetPath: '$(System.DefaultWorkingDirectory)/drop'
147156
strategy:
148157
runOnce:
149158
deploy:
150159
steps:
151160
- checkout: self
152-
- task: DownloadPipelineArtifact@2
153-
displayName: 'Download Build Artifacts'
154-
inputs:
155-
buildType: 'current'
156-
targetPath: '$(System.DefaultWorkingDirectory)'
157161
- task: 1ES.PublishNuget@1
158162
displayName: 'Publish NuGet to feed'
159163
inputs:

0 commit comments

Comments
 (0)