Skip to content

Commit

Permalink
Skip Component Governance in public builds (#29033)
Browse files Browse the repository at this point in the history
* Skip Component Governance in public builds

* Fixup
  • Loading branch information
wtgodbe authored Sep 14, 2022
1 parent 218412d commit 235507f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ stages:
demands: ImageOverride -equals Build.Server.Amd64.VS2019
variables:
- _InternalBuildArgs: ''
- skipComponentGovernanceDetection: ${{ ne(variables['System.TeamProject'], 'internal') }}
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- _SignType: real
- _InternalBuildArgs: /p:DotNetSignType=$(_SignType) /p:TeamName=$(_TeamName) /p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines) /p:OfficialBuildId=$(BUILD.BUILDNUMBER)
Expand Down Expand Up @@ -154,6 +155,7 @@ stages:
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
variables:
- _runCounter: $[counter(variables['Build.Reason'], 0)]
- skipComponentGovernanceDetection: ${{ ne(variables['System.TeamProject'], 'internal') }}
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), notin(variables['Build.Reason'], 'PullRequest', 'Schedule')) }}:
- _CosmosConnectionUrl: 'true'
steps:
Expand Down Expand Up @@ -203,6 +205,7 @@ stages:
name: NetCore1ESPool-Svc-Internal
demands: ImageOverride -equals Build.Server.Amd64.VS2019
variables:
- skipComponentGovernanceDetection: ${{ ne(variables['System.TeamProject'], 'internal') }}
- name: _HelixBuildConfig
value: $(_BuildConfig)
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
Expand Down

0 comments on commit 235507f

Please sign in to comment.