|
57 | 57 | buildVersionToDownload: specific |
58 | 58 | buildId: ${{ parameters.BuildToPublish }} |
59 | 59 |
|
| 60 | + - task: DownloadBuildArtifacts@0 |
| 61 | + displayName: 'Download artifact from ${{ parameters.BuildToPublish }}: sbom' |
| 62 | + inputs: |
| 63 | + artifactName: sbom |
| 64 | + downloadPath: $(Build.BinariesDirectory)\sbom |
| 65 | + buildType: specific |
| 66 | + project: $(System.TeamProject) |
| 67 | + pipeline: $(Build.DefinitionName) |
| 68 | + buildVersionToDownload: specific |
| 69 | + buildId: ${{ parameters.BuildToPublish }} |
| 70 | + |
60 | 71 | - ${{ else }}: |
61 | 72 | - task: DownloadPipelineArtifact@1 |
62 | 73 | displayName: 'Download artifact: Doc' |
|
77 | 88 | artifactName: embed |
78 | 89 | downloadPath: $(Build.BinariesDirectory) |
79 | 90 |
|
| 91 | + # Note that sbom is a 'build' artifact, not a 'pipeline' artifact |
| 92 | + - task: DownloadBuildArtifacts@0 |
| 93 | + displayName: 'Download artifact: sbom' |
| 94 | + inputs: |
| 95 | + artifactName: sbom |
| 96 | + downloadPath: $(Build.BinariesDirectory)\sbom |
80 | 97 |
|
81 | 98 | # Note that ARM64 MSIs are skipped at build when this option is specified |
82 | 99 | - powershell: 'gci *embed-arm*.zip | %{ Write-Host "Not publishing: $($_.Name)"; gi $_ } | del' |
@@ -133,6 +150,7 @@ jobs: |
133 | 150 | -keyfile "$(sshkey.secureFilePath)" |
134 | 151 | -doc_htmlhelp doc\htmlhelp |
135 | 152 | -embed embed |
| 153 | + -sbom sbom |
136 | 154 | workingDirectory: $(Build.BinariesDirectory) |
137 | 155 | condition: and(succeeded(), eq(variables['IsRealSigned'], 'true')) |
138 | 156 | displayName: 'Upload files to python.org' |
|
0 commit comments