File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
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 9595
9696  - task : PublishBuildArtifacts@1 
9797    displayName : ' Publish Artifact: sbom' 
98+     condition : and(succeeded(), not(variables['SkipSBOM'])) 
9899    inputs :
99100      PathtoPublish : $(Build.ArtifactStagingDirectory)\sbom 
100101      ArtifactName : sbom 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments