54 строки
1.3 KiB
YAML
54 строки
1.3 KiB
YAML
parameters:
|
|
# Test only the Release build by default.
|
|
- name: ReleaseBuildTarget
|
|
displayName: 'Build which target for Release?'
|
|
type: string
|
|
values: [ Build, Integration, UnitTest ]
|
|
default: UnitTest
|
|
- name: OtherBuildTarget
|
|
displayName: 'Build which target for Debug/CodeAnalysis?'
|
|
type: string
|
|
values: [ Build, Integration, UnitTest ]
|
|
default: Build
|
|
|
|
variables:
|
|
- name: DOTNET_CLI_TELEMETRY_OPTOUT
|
|
value: 1
|
|
- name: DOTNET_NOLOGO
|
|
value: 1
|
|
# Run CodeQL3000 tasks in a separate internal pipeline; not needed here.
|
|
- name: Codeql.SkipTaskAutoInjection
|
|
value: true
|
|
|
|
trigger: [main]
|
|
pr: ['*']
|
|
|
|
resources:
|
|
repositories:
|
|
# Repo: 1ESPipelineTemplates/1ESPipelineTemplates
|
|
- repository: 1esPipelines
|
|
type: git
|
|
name: 1ESPipelineTemplates/1ESPipelineTemplates
|
|
ref: refs/tags/release
|
|
|
|
extends:
|
|
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
|
|
parameters:
|
|
sdl:
|
|
policheck:
|
|
enabled: true
|
|
tsa:
|
|
enabled: true
|
|
pool:
|
|
name: NetCore1ESPool-Svc-Internal
|
|
image: 1es-windows-2019
|
|
os: windows
|
|
stages:
|
|
- stage: build
|
|
displayName: Build
|
|
jobs:
|
|
- template: /eng/templates/default-build.yml@self
|
|
parameters:
|
|
ReleaseBuildTarget: ${{ parameters.ReleaseBuildTarget }}
|
|
OtherBuildTarget: ${{ parameters.OtherBuildTarget }}
|