File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -35,3 +35,13 @@ steps:
3535 ${{ if and(parameters.Path, ne(parameters.Path, '.')) }} :
3636 workingDirectory : ${{ parameters.Path }}
3737 condition : and(succeeded(), variables['SourceCommit'])
38+
39+ - powershell : |
40+ if (-not (Test-Path "Misc\externals.spdx.json")) {
41+ "externals.spdx.json is missing - skipping SBOM"
42+ Write-Host "##vso[task.setvariable variable=SkipSBOM]1"
43+ }
44+ displayName : ' Checking for SBOM inputs'
45+ ${{ if and(parameters.Path, ne(parameters.Path, '.')) }} :
46+ workingDirectory : ${{ parameters.Path }}
47+ condition : and(succeeded(), not(variables['SkipSBOM']))
Original file line number Diff line number Diff line change 6565 git -C "$(Pipeline.Workspace)\release-tools" checkout $(Build.SourceVersion)
6666 displayName: 'Clone the python/release-tools repository'
6767
68- - powershell : |
69- if (-not (Test-Path "$(Build.SourcesDirectory)\Misc\externals.spdx.json")) {
70- "externals.spdx.json is missing - skipping SBOM"
71- Write-Host "##vso[task.setvariable variable=SkipSBOM]1"
72- }
73- condition: and(succeeded(), not(variables['SkipSBOM']))
74- displayName: 'Checking for SBOM'
75-
7668 - powershell : >
7769 & "$(Python)"
7870 "$(Pipeline.Workspace)\release-tools\sbom.py"
You can’t perform that action at this time.
0 commit comments