Skip to content

Commit

Permalink
Merge pull request #484 from microsoft/fix/release-pipeline-labels
Browse files Browse the repository at this point in the history
Update release pipeline labels for 1ES compliance
  • Loading branch information
baywet authored Dec 9, 2024
2 parents 216801b + 19e4035 commit b5bb2cd
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .azure-pipelines/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ extends:
- stage: build
jobs:
- job: build
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish Microsoft.Kiota.*.nupkg and release pipeline scripts'
artifactName: ArtifactsForRelease
targetPath: $(Build.ArtifactStagingDirectory)
steps:

- task: UseDotNet@2 # needed for ESRP sign
Expand Down Expand Up @@ -226,19 +232,20 @@ extends:
Contents: 'scripts\**'
TargetFolder: '$(Build.ArtifactStagingDirectory)'

- task: 1ES.PublishPipelineArtifact@1
displayName: 'Upload Artifact: Nugets'
inputs:
artifactName: Nugets
targetPath: $(Build.ArtifactStagingDirectory)

- stage: deploy
condition: and(contains(variables['build.sourceBranch'], 'refs/heads/main'), succeeded())
dependsOn: build
jobs:
- deployment: deploy_dotnet_kiota_libs
dependsOn: []
environment: nuget-org
templateContext:
type: releaseJob
isProduction: true
inputs:
- input: pipelineArtifact
artifactName: ArtifactsForRelease
targetPath: $(Pipeline.Workspace)
strategy:
runOnce:
deploy:
Expand All @@ -251,11 +258,6 @@ extends:
inputs:
versionSpec: '>=6.11.0'
checkLatest: true
- task: DownloadPipelineArtifact@2
displayName: Download nupkg from artifacts
inputs:
artifact: Nugets
source: current
- task: PowerShell@2
displayName: 'Extract release information to pipeline'
inputs:
Expand Down

0 comments on commit b5bb2cd

Please sign in to comment.