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)
|
$(_InternalRuntimeDownloadArgs)
|
||||||
installNodeJs: false
|
installNodeJs: false
|
||||||
installJdk: false
|
installJdk: false
|
||||||
|
skipComponentGovernanceDetection: true
|
||||||
artifacts:
|
artifacts:
|
||||||
- name: Linux_musl_x64_Logs
|
- name: Linux_musl_x64_Logs
|
||||||
path: artifacts/log/
|
path: artifacts/log/
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,8 @@
|
||||||
# Specifies what directory to run build.sh/cmd
|
# Specifies what directory to run build.sh/cmd
|
||||||
# buildScript: string
|
# buildScript: string
|
||||||
# Specifies the build script to run. Defaults to build.sh or build.cmd.
|
# 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
|
# See https://docs.microsoft.com/en-us/vsts/pipelines/yaml-schema for details
|
||||||
#
|
#
|
||||||
|
|
@ -60,6 +61,7 @@ parameters:
|
||||||
installJdk: true
|
installJdk: true
|
||||||
timeoutInMinutes: 180
|
timeoutInMinutes: 180
|
||||||
useHostedUbuntu: true
|
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).
|
# 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
|
# 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
|
continueOnError: true
|
||||||
condition: always()
|
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
|
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
||||||
condition: and(succeeded(), ne(variables['CG_RAN'], 'true'))
|
condition: and(succeeded(), ne(variables['CG_RAN'], 'true'))
|
||||||
displayName: 'Component Detection'
|
displayName: 'Component Detection'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue