Skip component governance for linux musl x64 (#23592)
* Skip component governance for linux musl x64 * Use parameters * jazz
This commit is contained in:
parent
a23f8be72c
commit
b4a37194f5
|
|
@ -449,6 +449,7 @@ stages:
|
|||
$(_InternalRuntimeDownloadArgs)
|
||||
installNodeJs: false
|
||||
installJdk: false
|
||||
skipComponentGovernanceDetection: true
|
||||
artifacts:
|
||||
- name: Linux_musl_x64_Logs
|
||||
path: artifacts/log/
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@
|
|||
# Specifies what directory to run build.sh/cmd
|
||||
# buildScript: string
|
||||
# Specifies the build script to run. Defaults to build.sh or build.cmd.
|
||||
|
||||
# skipComponentGovernanceDetection: boolean
|
||||
# Determines if component governance detection can be skipped
|
||||
#
|
||||
# See https://docs.microsoft.com/en-us/vsts/pipelines/yaml-schema for details
|
||||
#
|
||||
|
|
@ -60,6 +61,7 @@ parameters:
|
|||
installJdk: true
|
||||
timeoutInMinutes: 180
|
||||
useHostedUbuntu: true
|
||||
skipComponentGovernanceDetection: false
|
||||
|
||||
# We need longer than the default amount of 5 minutes to upload our logs/artifacts. (We currently take around 5 mins in the best case).
|
||||
# This makes sure we have time to upload everything in the case of a build timeout - really important for investigating a build
|
||||
|
|
@ -240,7 +242,7 @@ jobs:
|
|||
continueOnError: true
|
||||
condition: always()
|
||||
|
||||
- ${{ if and(startsWith(parameters.jobDisplayName, 'Build:'), ne(variables['skipComponentGovernanceDetection'], 'true'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
||||
- ${{ if and(startsWith(parameters.jobDisplayName, 'Build:'), ne(parameters.skipComponentGovernanceDetection, 'true'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
||||
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
||||
condition: and(succeeded(), ne(variables['CG_RAN'], 'true'))
|
||||
displayName: 'Component Detection'
|
||||
|
|
|
|||
Loading…
Reference in New Issue