Skip to content

Commit

Permalink
chore: Update release pipeline labels for 1ES compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndiritu committed Dec 4, 2024
1 parent 48ac98b commit 0f345ca
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: Nugets
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: Nugets
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 0f345ca

Please sign in to comment.