Update azure-pipeline.yml to use 1ES templates (#317)
This commit is contained in:
Родитель
6d7ce48e38
Коммит
7ae564f939
|
@ -1,15 +1,3 @@
|
|||
# Branches that trigger builds on PR
|
||||
pr:
|
||||
branches:
|
||||
include:
|
||||
- main
|
||||
- release/*
|
||||
paths:
|
||||
exclude:
|
||||
- README.md
|
||||
- docs/*
|
||||
|
||||
# Run official build every day at midnight, if code has changed since the last run.
|
||||
trigger:
|
||||
batch: true
|
||||
branches:
|
||||
|
@ -17,15 +5,35 @@ trigger:
|
|||
- main
|
||||
|
||||
variables:
|
||||
- template: /eng/common/templates/variables/pool-providers.yml
|
||||
- name: _TeamName
|
||||
- template: /eng/common/templates-official/variables/pool-providers.yml@self
|
||||
- name: TeamName
|
||||
value: Roslyn
|
||||
|
||||
stages:
|
||||
- stage: build
|
||||
resources:
|
||||
repositories:
|
||||
- repository: MicroBuildTemplate
|
||||
type: git
|
||||
name: 1ESPipelineTemplates/MicroBuildTemplate
|
||||
ref: refs/tags/release
|
||||
extends:
|
||||
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
|
||||
parameters:
|
||||
sdl:
|
||||
sourceAnalysisPool:
|
||||
name: $(DncEngInternalBuildPool)
|
||||
image: 1es-windows-2022-pt
|
||||
os: windows
|
||||
pool:
|
||||
name: AzurePipelines-EO
|
||||
image: AzurePipelinesWindows2022compliantGPT
|
||||
os: windows
|
||||
customBuildTags:
|
||||
- ES365AIMigrationTooling
|
||||
stages:
|
||||
- stage: build
|
||||
displayName: Build
|
||||
jobs:
|
||||
- template: /eng/common/templates/jobs/jobs.yml
|
||||
- template: /eng/common/templates-official/jobs/jobs.yml@self
|
||||
parameters:
|
||||
enableMicrobuild: true
|
||||
enablePublishBuildArtifacts: true
|
||||
|
@ -50,7 +58,7 @@ stages:
|
|||
- group: Publish-Build-Assets
|
||||
- name: _OfficialBuildArgs
|
||||
value: /p:DotNetSignType=$(_SignType)
|
||||
/p:TeamName=$(_TeamName)
|
||||
/p:TeamName=$(TeamName)
|
||||
/p:DotNetPublishUsingPipelines=true
|
||||
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
|
||||
# else
|
||||
|
@ -115,11 +123,8 @@ stages:
|
|||
clean: true
|
||||
- script: eng/common/cibuild.sh --configuration $(_BuildConfig) --prepareMachine
|
||||
displayName: Build and Test
|
||||
|
||||
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
||||
- template: eng\common\templates\post-build\post-build.yml
|
||||
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
||||
- template: /eng/common/templates-official/post-build/post-build.yml@self
|
||||
parameters:
|
||||
publishingInfraVersion: 3
|
||||
# Symbol validation isn't being very reliable lately. This should be enabled back
|
||||
# once this issue is resolved: https://github.com/dotnet/arcade/issues/2871
|
||||
enableSymbolValidation: false
|
||||
|
|
Загрузка…
Ссылка в новой задаче