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

Improve compliance jobs #2772

Merged
merged 4 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
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
25 changes: 14 additions & 11 deletions scripts/azure-templates-bootstrapper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ parameters:
installLlvm: true # whether or not to install the LLVM compiler
installEmsdk: false # whether or not to install the Emscripten SDK
installNinja: false # whether or not to install the ninja build system
artifactName: '' # the name of the artifact to merge this run into
publishArtifacts: [] # the additional artifacts to publish
tools: [] # any additional .net global tools
skipInstall: false # whether or not to install any tools
Expand All @@ -57,23 +56,27 @@ jobs:
break: false
outputParentDirectory: 'output'
outputs:
- output: pipelineArtifact
displayName: 'Publish the ${{ parameters.name }} artifacts'
condition: or(${{ parameters.shouldPublish }}, failed())
artifactName: ${{ parameters.name }}
targetPath: 'output'
- ${{ if ne(parameters.artifactName, '') }}:
- ${{ if eq(parameters.shouldPublish, 'true') }}:
- output: pipelineArtifact
displayName: 'Publish the combined ${{ parameters.artifactName }} artifacts'
artifactName: ${{ parameters.artifactName }}
displayName: 'Publish the ${{ parameters.name }} artifacts'
artifactName: ${{ parameters.name }}
targetPath: 'output'
- output: pipelineArtifact
displayName: 'Publish the failed ${{ parameters.name }} artifacts'
condition: failed()
artifactName: ${{ parameters.name }}_failed_$(System.JobAttempt)
targetPath: 'output'
- ${{ each additionalArtifact in parameters.publishArtifacts }}:
- output: pipelineArtifact
displayName: 'Publish the ${{ additionalArtifact.name }} artifacts'
${{ if eq(additionalArtifact.always, 'true') }}:
condition: always()
artifactName: ${{ additionalArtifact.name }}
targetPath: ${{ additionalArtifact.path }}
- ${{ if eq(additionalArtifact.always, 'true') }}:
- output: pipelineArtifact
displayName: 'Publish the failed ${{ additionalArtifact.name }} artifacts'
condition: failed()
artifactName: ${{ additionalArtifact.name }}_failed_$(System.JobAttempt)
targetPath: ${{ additionalArtifact.path }}

steps:
# prepare
Expand Down
2 changes: 2 additions & 0 deletions scripts/azure-templates-stages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,8 @@ stages:
- package
complianceEnabled: true
complianceTimeoutInMinutes: 480
windowsPoolName: ${{ parameters.buildAgentHost.pool.name }}
windowsImageOverride: ${{ parameters.buildAgentHost.pool.image }}
scanArtifacts:
- nuget
- nuget_symbols
Expand Down
Loading