-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89447d5
commit 448d1c6
Showing
21 changed files
with
314 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
138 changes: 74 additions & 64 deletions
138
eng/pipelines/common/templates/pipeline-with-resources.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,89 @@ | ||
parameters: | ||
- name: stages | ||
type: stageList | ||
- name: isOfficialBuild | ||
type: boolean | ||
default: false | ||
|
||
extends: | ||
template: templateDispatch.yml | ||
parameters: | ||
${{ if parameters.isOfficialBuild }}: | ||
templatePath: template1es.yml | ||
${{ else }}: | ||
templatePath: templatePublic.yml | ||
|
||
stages: ${{ parameters.stages }} | ||
|
||
containers: | ||
Linux_arm: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-arm-20220907130538-70ed2e8 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/arm | ||
|
||
Linux_armv6: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-20.04-cross-armv6-raspbian-10-20211208135931-e6e3ac4 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/armv6 | ||
|
||
Linux_arm64: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-20210719121212-8a8d3be | ||
env: | ||
ROOTFS_DIR: /crossrootfs/arm64 | ||
|
||
Linux_musl_x64: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.13-WithNode-20210910135845-c401c85 | ||
|
||
Linux_musl_arm: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-arm-alpine-20220915134743-78f7860 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/arm | ||
|
||
Linux_musl_arm64: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-alpine-20210719121212-b2c2436 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/arm64 | ||
|
||
resources: | ||
containers: | ||
- container: Linux_arm | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-arm-20220907130538-70ed2e8 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/arm | ||
|
||
- container: Linux_armv6 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-20.04-cross-armv6-raspbian-10-20211208135931-e6e3ac4 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/armv6 | ||
|
||
- container: Linux_arm64 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-20210719121212-8a8d3be | ||
env: | ||
ROOTFS_DIR: /crossrootfs/arm64 | ||
|
||
- container: Linux_musl_x64 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.13-WithNode-20210910135845-c401c85 | ||
|
||
- container: Linux_musl_arm | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-arm-alpine-20220915134743-78f7860 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/arm | ||
|
||
- container: Linux_musl_arm64 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-alpine-20210719121212-b2c2436 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/arm64 | ||
# This container contains all required toolsets to build for Android and for Linux with bionic libc. | ||
Linux_bionic: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-android-20200422191843-e2c3f83 | ||
|
||
- container: Linux_bionic | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-android-20200422191843-e2c3f83 | ||
Linux_x64: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-20210714125435-9b5bbc2 | ||
|
||
- container: Linux_x64 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-20210714125435-9b5bbc2 | ||
Linux_x86: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-x86-linux-20211022152824-f853169 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/x86 | ||
|
||
- container: Linux_x86 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-x86-linux-20211022152824-f853169 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/x86 | ||
SourceBuild_Linux_x64: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-source-build-20210714125450-5d87b80 | ||
|
||
- container: SourceBuild_Linux_x64 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-source-build-20210714125450-5d87b80 | ||
Linux_s390x: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-s390x-20201102145728-d6e0352 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/s390x | ||
|
||
- container: Linux_s390x | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-s390x-20201102145728-d6e0352 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/s390x | ||
Linux_ppc64le: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-ppc64le-20220531132048-b9de666 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/ppc64le | ||
|
||
- container: Linux_ppc64le | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-ppc64le-20220531132048-b9de666 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/ppc64le | ||
Browser_wasm: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-webassembly-20210531091624-f5c7a43 | ||
|
||
- container: Browser_wasm | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-webassembly-20210531091624-f5c7a43 | ||
FreeBSD_x64: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-freebsd-12-20210917001307-f13d79e | ||
env: | ||
ROOTFS_DIR: /crossrootfs/x64 | ||
|
||
- container: FreeBSD_x64 | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-freebsd-12-20210917001307-f13d79e | ||
env: | ||
ROOTFS_DIR: /crossrootfs/x64 | ||
Tizen_armel: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-armel-tizen-20210719212651-8b02f56 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/armel | ||
|
||
- container: Tizen_armel | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-armel-tizen-20210719212651-8b02f56 | ||
env: | ||
ROOTFS_DIR: /crossrootfs/armel | ||
debpkg: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-debpkg-20220504035737-cfdd435 | ||
|
||
- container: debpkg | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-debpkg-20220504035737-cfdd435 | ||
|
||
- container: rpmpkg | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-8-rpmpkg-20210714125410-daa5116 | ||
|
||
stages: ${{ parameters.stages }} | ||
rpmpkg: | ||
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-8-rpmpkg-20210714125410-daa5116 |
22 changes: 22 additions & 0 deletions
22
eng/pipelines/common/templates/publish-build-artifacts.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
parameters: | ||
- name: isOfficialBuild | ||
type: boolean | ||
- name: displayName | ||
type: string | ||
- name: inputs | ||
type: object | ||
- name: condition | ||
type: string | ||
default: '' | ||
|
||
steps: | ||
- ${{ if parameters.isOfficialBuild }}: | ||
- task: 1ES.PublishBuildArtifacts@1 | ||
displayName: ${{ parameters.displayName }} | ||
inputs: ${{ parameters.inputs }} | ||
condition: ${{ parameters.condition }} | ||
- ${{ else }}: | ||
- task: PublishBuildArtifacts@1 | ||
displayName: ${{ parameters.displayName }} | ||
inputs: ${{ parameters.inputs }} | ||
condition: ${{ parameters.condition }} |
17 changes: 17 additions & 0 deletions
17
eng/pipelines/common/templates/publish-pipeline-artifacts.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
parameters: | ||
- name: displayName | ||
type: string | ||
- name: inputs | ||
type: object | ||
- name: isOfficialBuild | ||
type: boolean | ||
|
||
steps: | ||
- ${{ if parameters.isOfficialBuild }}: | ||
- task: 1ES.PublishPipelineArtifact@1 | ||
displayName: ${{ parameters.displayName }} | ||
inputs: ${{ parameters.inputs }} | ||
- ${{ else }}: | ||
- task: PublishPipelineArtifact@1 | ||
displayName: ${{ parameters.displayName }} | ||
inputs: ${{ parameters.inputs }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
|
||
parameters: | ||
- name: templatePath | ||
type: string | ||
default: 'templates-official' | ||
- name: stages | ||
type: stageList | ||
- name: containers | ||
type: object | ||
|
||
|
||
resources: | ||
repositories: | ||
- repository: 1ESPipelineTemplates | ||
type: git | ||
name: 1ESPipelineTemplates/1ESPipelineTemplates | ||
ref: refs/tags/release | ||
|
||
extends: | ||
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates | ||
parameters: | ||
pool: | ||
name: NetCore1ESPool-Svc-Internal | ||
image: 1es-windows-2022 | ||
os: windows | ||
|
||
containers: | ||
${{ parameters.containers }} | ||
|
||
stages: ${{ parameters.stages }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
parameters: | ||
- name: templatePath | ||
type: string | ||
- name: stages | ||
type: stageList | ||
- name: containers | ||
type: object | ||
|
||
extends: | ||
template: ${{ parameters.templatePath }} | ||
parameters: | ||
stages: ${{ parameters.stages }} | ||
containers: ${{ parameters.containers }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
parameters: | ||
- name: templatePath | ||
type: string | ||
default: 'templates' | ||
- name: stages | ||
type: stageList | ||
- name: containers | ||
type: object | ||
|
||
resources: | ||
containers: | ||
- ${{ each container_pair in parameters.containers }}: | ||
- ${{ if container_pair.value.image }}: | ||
- container: ${{ container_pair.key }} | ||
${{ each pair in container_pair.value }}: | ||
${{ if notIn(pair.key, 'tenantId', 'identityType', 'registry') }}: | ||
${{ pair.key }}: ${{ pair.value }} | ||
|
||
|
||
stages: ${{ parameters.stages }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.