Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update release pipeline labels for 1ES compliance #484

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
baywet marked this conversation as resolved.
Show resolved Hide resolved
inputs:
Expand Down
Loading