Skip to content

Commit

Permalink
CG only runs on internal (#3866)
Browse files Browse the repository at this point in the history
* Condition added and indentation changes
  • Loading branch information
JonathanCrd authored Aug 5, 2022
1 parent 5411134 commit bf65862
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
19 changes: 10 additions & 9 deletions eng/pipelines/templates/jobs/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,14 @@ jobs:

- template: /eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml

- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 'Generate BOM'
condition: succeededOrFailed()
inputs:
BuildDropPath: $(Build.SourcesDirectory)/build
- ${{if eq(variables['System.TeamProject'], 'internal') }}:
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 'Generate BOM'
condition: succeededOrFailed()
inputs:
BuildDropPath: $(Build.SourcesDirectory)/build

- template: /eng/common/pipelines/templates/steps/publish-artifact.yml
parameters:
ArtifactPath: '$(Build.SourcesDirectory)/build/_manifest'
ArtifactName: 'release_artifact_manifest'
- template: /eng/common/pipelines/templates/steps/publish-artifact.yml
parameters:
ArtifactPath: '$(Build.SourcesDirectory)/build/_manifest'
ArtifactName: 'release_artifact_manifest'
19 changes: 10 additions & 9 deletions eng/pipelines/templates/jobs/ci.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,14 @@ jobs:
displayName: Set bom file artifact name
condition: succeededOrFailed()
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 'Generate BOM'
condition: succeededOrFailed()
inputs:
BuildDropPath: $(Build.ArtifactStagingDirectory)
- ${{if eq(variables['System.TeamProject'], 'internal') }}:
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 'Generate BOM'
condition: succeededOrFailed()
inputs:
BuildDropPath: $(Build.ArtifactStagingDirectory)

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

0 comments on commit bf65862

Please sign in to comment.