Skip to content

Commit

Permalink
Adding manifest generation to build (#16815)
Browse files Browse the repository at this point in the history
* adding manifest generation to build, ensure it only runs on go 117 windows
  • Loading branch information
scbedd authored Jan 14, 2022
1 parent c430206 commit 2ab9041
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions eng/pipelines/templates/jobs/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ stages:
pool.name: azsdk-pool-mms-win-2019-general
image.name: MMS2019
go.version: '1.17'
generate.bom: true
Linux_Go116:
pool.name: azsdk-pool-mms-ubuntu-2004-general
image.name: MMSUbuntu20.04
Expand Down
12 changes: 12 additions & 0 deletions eng/pipelines/templates/steps/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,18 @@ steps:
displayName: 'Dump Test Proxy logs'
condition: succeededOrFailed()
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 'Generate BOM'
condition: and(succeededOrFailed(), eq(variables['generate.bom'], 'true'))
inputs:
BuildDropPath: $(Build.ArtifactStagingDirectory)

- template: /eng/common/pipelines/templates/steps/publish-artifact.yml
parameters:
ArtifactPath: '$(Build.ArtifactStagingDirectory)/_manifest'
ArtifactName: 'manifest'
CustomCondition: and(succeededOrFailed(), eq(variables['generate.bom'], 'true'))

- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/templates/variables/globals.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
variables:
GoLintCLIVersion: 'v1.23.6'
Package.EnableSBOMSigning: true

0 comments on commit 2ab9041

Please sign in to comment.