2024-03-15 01:09:21 +03:00
|
|
|
# Name: dotnet.vscode-dotnet-runtime
|
|
|
|
|
|
|
|
# URL: https://dev.azure.com/dnceng/internal/_build?definitionId=656
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
batch: true
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- main
|
|
|
|
tags:
|
|
|
|
include:
|
|
|
|
- SDK-v*
|
|
|
|
- Runtime-v*
|
|
|
|
pr:
|
|
|
|
autoCancel: false
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
variables:
|
|
|
|
- name: is-runtime-release
|
|
|
|
value: $[startsWith(variables['Build.SourceBranch'], 'refs/tags/Runtime-v')]
|
|
|
|
- name: is-sdk-release
|
|
|
|
value: $[startsWith(variables['Build.SourceBranch'], 'refs/tags/SDK-v')]
|
|
|
|
- name: Codeql.Enabled
|
|
|
|
value: true
|
2024-10-14 20:38:21 +03:00
|
|
|
- name: MicroBuildOutputFolderOverride
|
|
|
|
value: '$(Agent.TempDirectory)'
|
2024-03-15 01:09:21 +03:00
|
|
|
|
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: 1esPipelines
|
|
|
|
type: git
|
|
|
|
name: 1ESPipelineTemplates/1ESPipelineTemplates
|
|
|
|
ref: refs/tags/release
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
- name: pools
|
|
|
|
type: object
|
|
|
|
default:
|
2024-10-15 21:45:42 +03:00
|
|
|
- name: NetCore1ESPool-Internal
|
|
|
|
image: 1es-windows-2022
|
|
|
|
os: windows
|
2024-11-14 22:26:54 +03:00
|
|
|
emoji: 🪟
|
2024-03-15 01:09:21 +03:00
|
|
|
- name: NetCore1ESPool-Internal
|
|
|
|
image: 1es-ubuntu-2204
|
|
|
|
os: linux
|
2024-11-14 22:26:54 +03:00
|
|
|
emoji: 🐧
|
2024-03-15 01:09:21 +03:00
|
|
|
- name: Azure Pipelines
|
|
|
|
image: macOS-latest
|
|
|
|
os: macOS
|
2024-11-14 22:26:54 +03:00
|
|
|
emoji: 🍎
|
2024-08-12 21:04:24 +03:00
|
|
|
- name: SignType
|
|
|
|
displayName: Sign type
|
|
|
|
type: string
|
|
|
|
default: Test
|
|
|
|
values: [ 'Test', 'Real' ]
|
2024-03-15 01:09:21 +03:00
|
|
|
|
|
|
|
extends:
|
2024-03-20 01:32:11 +03:00
|
|
|
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
|
2024-03-15 01:09:21 +03:00
|
|
|
parameters:
|
|
|
|
sdl:
|
|
|
|
sourceAnalysisPool:
|
|
|
|
name: NetCore1ESPool-Internal
|
|
|
|
image: 1es-windows-2022
|
|
|
|
os: windows
|
2024-06-05 02:56:01 +03:00
|
|
|
sbom:
|
|
|
|
enabled: false # SBOM requires a special setup for node.js projects to ensure all dependencies are included.
|
2024-05-28 19:38:53 +03:00
|
|
|
policheck:
|
|
|
|
enabled: true
|
|
|
|
exclusionsFile: $(System.DefaultWorkingDirectory)\PoliCheckExclusions.xml
|
2024-10-07 23:19:08 +03:00
|
|
|
tsa:
|
|
|
|
enabled: true
|
2024-03-15 01:09:21 +03:00
|
|
|
stages:
|
|
|
|
- stage: Internal
|
|
|
|
jobs:
|
|
|
|
- ${{ each image in parameters.pools }}:
|
|
|
|
- template: pipeline-templates/build-test.yaml@self
|
|
|
|
parameters:
|
|
|
|
pool:
|
|
|
|
name: ${{ image.name }}
|
|
|
|
image: ${{ image.image }}
|
|
|
|
os: ${{ image.os }}
|
2024-10-15 21:45:42 +03:00
|
|
|
emoji: ${{ image.emoji }}
|
2024-03-15 01:09:21 +03:00
|
|
|
useOneEngineeringPool: true
|
|
|
|
- template: pipeline-templates/upstream-verify.yaml@self
|
|
|
|
parameters:
|
|
|
|
pool:
|
|
|
|
name: NetCore1ESPool-Internal
|
|
|
|
image: 1es-windows-2022
|
|
|
|
os: windows
|
|
|
|
useOneEngineeringPool: true
|
|
|
|
- template: pipeline-templates/lint.yaml@self
|
|
|
|
parameters:
|
|
|
|
pool:
|
|
|
|
name: NetCore1ESPool-Internal
|
|
|
|
image: 1es-windows-2022
|
|
|
|
os: windows
|
|
|
|
useOneEngineeringPool: true
|
|
|
|
- template: pipeline-templates/package-vsix.yaml@self
|
|
|
|
parameters:
|
|
|
|
pool:
|
|
|
|
name: NetCore1ESPool-Internal
|
|
|
|
image: 1es-windows-2022
|
|
|
|
os: windows
|
|
|
|
useOneEngineeringPool: true
|
2024-08-12 21:04:24 +03:00
|
|
|
SignType: ${{ parameters.SignType }}
|
2024-06-05 02:56:01 +03:00
|
|
|
- template: pipeline-templates/sbom.yaml@self
|
|
|
|
parameters:
|
|
|
|
pool:
|
|
|
|
name: NetCore1ESPool-Internal
|
|
|
|
image: 1es-windows-2022
|
|
|
|
os: windows
|
|
|
|
useOneEngineeringPool: true
|