Browse Source

Don't run Mac/Linux in official build (#1291)

These don't contribute official artifacts and otherwise would need to switch to 1ES pools.
pull/1293/head
Matt Mitchell 5 years ago
committed by GitHub
parent
commit
23586f9255
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 125
      azure-pipelines.yml

125
azure-pipelines.yml

@ -97,69 +97,70 @@ stages:
artifactType: Container artifactType: Container
parallel: true parallel: true
- job: Linux - ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
pool: - job: Linux
vmImage: ubuntu-20.04 pool:
variables: vmImage: ubuntu-20.04
- name: _SignType variables:
value: none - name: _SignType
- name: MSBUILDDISABLENODEREUSE value: none
value: 1 - name: MSBUILDDISABLENODEREUSE
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), notin(variables['Build.Reason'], 'PullRequest')) }}: value: 1
- name: _OfficialBuildArgs - ${{ if and(eq(variables['System.TeamProject'], 'internal'), notin(variables['Build.Reason'], 'PullRequest')) }}:
value: -p:OfficialBuildId=$(Build.BuildNumber) - name: _OfficialBuildArgs
# else value: -p:OfficialBuildId=$(Build.BuildNumber)
- ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}: # else
- name: _OfficialBuildArgs - ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
value: '' - name: _OfficialBuildArgs
steps: value: ''
- checkout: self steps:
clean: true - checkout: self
- script: eng/common/cibuild.sh clean: true
--configuration $(_BuildConfig) - script: eng/common/cibuild.sh
--prepareMachine --configuration $(_BuildConfig)
displayName: Build --prepareMachine
- task: PublishBuildArtifacts@1 displayName: Build
displayName: Upload TestResults - task: PublishBuildArtifacts@1
condition: always() displayName: Upload TestResults
continueOnError: true condition: always()
inputs: continueOnError: true
pathtoPublish: artifacts/TestResults/$(_BuildConfig)/ inputs:
artifactName: $(Agent.Os)_$(Agent.JobName) TestResults pathtoPublish: artifacts/TestResults/$(_BuildConfig)/
artifactType: Container artifactName: $(Agent.Os)_$(Agent.JobName) TestResults
parallel: true artifactType: Container
parallel: true
- job: Mac - job: Mac
pool: pool:
vmImage: macOS-11 vmImage: macOS-11
variables: variables:
- name: _SignType - name: _SignType
value: none value: none
- name: MSBUILDDISABLENODEREUSE - name: MSBUILDDISABLENODEREUSE
value: 1 value: 1
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), notin(variables['Build.Reason'], 'PullRequest')) }}: - ${{ if and(eq(variables['System.TeamProject'], 'internal'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- name: _OfficialBuildArgs - name: _OfficialBuildArgs
value: -p:OfficialBuildId=$(Build.BuildNumber) value: -p:OfficialBuildId=$(Build.BuildNumber)
# else # else
- ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}: - ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
- name: _OfficialBuildArgs - name: _OfficialBuildArgs
value: '' value: ''
steps: steps:
- checkout: self - checkout: self
clean: true clean: true
- script: eng/common/cibuild.sh - script: eng/common/cibuild.sh
--configuration $(_BuildConfig) --configuration $(_BuildConfig)
--prepareMachine --prepareMachine
displayName: Build displayName: Build
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Upload TestResults displayName: Upload TestResults
condition: always() condition: always()
continueOnError: true continueOnError: true
inputs: inputs:
pathtoPublish: artifacts/TestResults/$(_BuildConfig)/ pathtoPublish: artifacts/TestResults/$(_BuildConfig)/
artifactName: $(Agent.Os)_$(Agent.JobName) TestResults artifactName: $(Agent.Os)_$(Agent.JobName) TestResults
artifactType: Container artifactType: Container
parallel: true parallel: true
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- template: eng\common\templates\post-build\post-build.yml - template: eng\common\templates\post-build\post-build.yml

Loading…
Cancel
Save