Skip to content

Commit

Permalink
Update Manifest Publishing (#22476)
Browse files Browse the repository at this point in the history
* split manifest out into its own artifact. update publishing origin locations
  • Loading branch information
scbedd authored Jan 14, 2022
1 parent be888c5 commit 9eca55e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
24 changes: 12 additions & 12 deletions eng/pipelines/templates/steps/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,6 @@ steps:

- ${{ parameters.BeforePublishSteps }}

- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 'Upload Package SBOM'
inputs:
BuildDropPath: $(Build.ArtifactStagingDirectory)

- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 'Upload Documentation SBOM'
condition: and(succeeded(), ${{ parameters.BuildDocs }})
inputs:
BuildDropPath: $(Build.SourcesDirectory)/_docs

- template: /eng/common/pipelines/templates/steps/publish-artifact.yml
parameters:
ArtifactPath: '$(Build.ArtifactStagingDirectory)'
Expand All @@ -121,4 +110,15 @@ steps:
parameters:
ArtifactPath: '$(Build.SourcesDirectory)/_docs'
CustomCondition: ${{ parameters.BuildDocs }}
ArtifactName: 'documentation'
ArtifactName: 'documentation'

- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 'Generate BOM'
inputs:
BuildDropPath: $(Build.ArtifactStagingDirectory)

- template: /eng/common/pipelines/templates/steps/publish-artifact.yml
parameters:
ArtifactPath: '$(Build.ArtifactStagingDirectory)/_manifest'
ArtifactName: 'manifest'

12 changes: 9 additions & 3 deletions eng/pipelines/templates/steps/build-conda-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ steps:
mkdir $(Agent.BuildDirectory)/conda/
mkdir $(Agent.BuildDirectory)/conda/output
mkdir $(Agent.BuildDirectory)/conda/build
mkdir $(Agent.BuildDirectory)/conda/manifest
Write-Host "##vso[task.setvariable variable=conda.output]$(Agent.BuildDirectory)/conda/output"
Write-Host "##vso[task.setvariable variable=conda.build]$(Agent.BuildDirectory)/conda/build"
Expand Down Expand Up @@ -78,12 +79,17 @@ steps:
displayName: 'Activate Conda Environment and Build ${{ artifact.name }}'
workingDirectory: $(Build.SourcesDirectory)/sdk/${{ parameters.ServiceDirectory }}/conda-recipe
- template: /eng/common/pipelines/templates/steps/publish-artifact.yml
parameters:
ArtifactPath: '$(Agent.BuildDirectory)/conda/output'
ArtifactName: 'conda'

- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 'Upload Conda Package SBOM'
inputs:
BuildDropPath: '$(Agent.BuildDirectory)/conda/output'
BuildDropPath: '$(Agent.BuildDirectory)/conda/manifest'

- template: /eng/common/pipelines/templates/steps/publish-artifact.yml
parameters:
ArtifactPath: '$(Agent.BuildDirectory)/conda/output'
ArtifactName: 'conda'
ArtifactPath: '$(Agent.BuildDirectory)/conda/manifest/_manifest'
ArtifactName: 'conda_manifest'

0 comments on commit 9eca55e

Please sign in to comment.