Skip to content

Commit 7afe7f9

Browse files
authored
Merge pull request #946 from microsoftgraph/chore/release-pipeline-labels
chore: Label release job in pipeline to comply with 1ES
2 parents 49d8caa + 93e3cf2 commit 7afe7f9

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

pipelines/productionBuild.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ extends:
7878
pwsh: true
7979
enabled: true
8080
- powershell: |
81-
dotnet workload install android macos ios maccatalyst
81+
dotnet workload install android macos ios maccatalyst
8282
displayName: 'Install needed dotnet workloads'
8383
- task: DotNetCoreCLI@2
8484
displayName: 'dotnet restore'
@@ -243,6 +243,13 @@ extends:
243243
dependsOn: build
244244
jobs:
245245
- deployment: deploy_nuget
246+
templateContext:
247+
type: releaseJob
248+
isProduction: true
249+
inputs:
250+
- input: pipelineArtifact
251+
artifactName: ProductionReleaseArtifact
252+
targetPath: $(Pipeline.Workspace)
246253
pool:
247254
name: Azure-Pipelines-1ESPT-ExDShared
248255
os: windows
@@ -258,11 +265,6 @@ extends:
258265
inputs:
259266
versionSpec: '>=5.2.0'
260267
checkLatest: true
261-
- task: DownloadPipelineArtifact@2
262-
displayName: Download nupkg from artifacts
263-
inputs:
264-
artifact: ProductionReleaseArtifact
265-
source: current
266268
- task: PowerShell@2
267269
displayName: 'Get Latest Commit SHA from repo'
268270
inputs:
@@ -297,4 +299,4 @@ extends:
297299
assetUploadMode: replace
298300
assets: |
299301
!**/**
300-
$(Pipeline.Workspace)/Microsoft.Graph.Core.*.*nupkg
302+
$(Pipeline.Workspace)/Microsoft.Graph.Core.*.*nupkg

0 commit comments

Comments
 (0)