Merge in 'release/8.0.1xx' changes
This commit is contained in:
commit
8dfcac5e40
5 changed files with 145 additions and 110 deletions
eng/pipelines/templates
src/SourceBuild/content/eng/pipelines
|
@ -67,7 +67,10 @@ jobs:
|
||||||
condition: succeededOrFailed()
|
condition: succeededOrFailed()
|
||||||
dependsOn: ${{ parameters.reuseBuildArtifactsFrom }}_${{ parameters.architecture }}
|
dependsOn: ${{ parameters.reuseBuildArtifactsFrom }}_${{ parameters.architecture }}
|
||||||
variables:
|
variables:
|
||||||
- template: /eng/common/templates/variables/pool-providers.yml
|
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
|
||||||
|
- template: /eng/common/templates/variables/pool-providers.yml
|
||||||
|
- ${{ else }}:
|
||||||
|
- template: /eng/common/templates-official/variables/pool-providers.yml
|
||||||
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
||||||
- group: AzureDevOps-Artifact-Feeds-Pats
|
- group: AzureDevOps-Artifact-Feeds-Pats
|
||||||
- ${{ if and(not(parameters.isBuiltFromVmr), eq(variables['System.TeamProject'], 'internal'), not(startswith(parameters.vmrBranch, 'internal/release/')), not(eq(variables['Build.Reason'], 'PullRequest'))) }}:
|
- ${{ if and(not(parameters.isBuiltFromVmr), eq(variables['System.TeamProject'], 'internal'), not(startswith(parameters.vmrBranch, 'internal/release/')), not(eq(variables['Build.Reason'], 'PullRequest'))) }}:
|
||||||
|
@ -87,8 +90,21 @@ jobs:
|
||||||
- name: sourcesPath
|
- name: sourcesPath
|
||||||
value: ${{ parameters.vmrPath }}
|
value: ${{ parameters.vmrPath }}
|
||||||
|
|
||||||
|
templateContext:
|
||||||
|
outputs:
|
||||||
|
- output: pipelineArtifact
|
||||||
|
displayName: 'Publish BuildLogs'
|
||||||
|
condition: succeededOrFailed()
|
||||||
|
targetPath: '$(Build.StagingDirectory)/BuildLogs'
|
||||||
|
artifactName: $(Agent.JobName)_BuildLogs_Attempt$(System.JobAttempt)
|
||||||
|
- output: pipelineArtifact
|
||||||
|
displayName: 'Publish Artifacts'
|
||||||
|
condition: succeededOrFailed()
|
||||||
|
targetPath: '${{ variables.sourcesPath }}/artifacts/${{ parameters.architecture }}/Release/'
|
||||||
|
artifactName: $(Agent.JobName)_Artifacts
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- template: ../steps/vmr-prepare.yml
|
- template: ../steps/vmr-prepare.yml@self
|
||||||
parameters:
|
parameters:
|
||||||
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
|
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
|
||||||
vmrBranch: $(System.PullRequest.TargetBranch)
|
vmrBranch: $(System.PullRequest.TargetBranch)
|
||||||
|
@ -99,7 +115,7 @@ jobs:
|
||||||
|
|
||||||
# Synchronize new content in the VMR during PRs (we expect this to come
|
# Synchronize new content in the VMR during PRs (we expect this to come
|
||||||
- ${{ if and(not(parameters.isBuiltFromVmr), eq(variables['Build.Reason'], 'PullRequest')) }}:
|
- ${{ if and(not(parameters.isBuiltFromVmr), eq(variables['Build.Reason'], 'PullRequest')) }}:
|
||||||
- template: ../steps/vmr-pull-updates.yml
|
- template: ../steps/vmr-pull-updates.yml@self
|
||||||
parameters:
|
parameters:
|
||||||
vmrPath: ${{ parameters.vmrPath }}
|
vmrPath: ${{ parameters.vmrPath }}
|
||||||
vmrBranch: ${{ parameters.vmrBranch }}
|
vmrBranch: ${{ parameters.vmrBranch }}
|
||||||
|
@ -250,13 +266,6 @@ jobs:
|
||||||
displayName: Prepare BuildLogs staging directory
|
displayName: Prepare BuildLogs staging directory
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
condition: succeededOrFailed()
|
condition: succeededOrFailed()
|
||||||
|
|
||||||
- publish: '$(Build.StagingDirectory)/BuildLogs'
|
|
||||||
artifact: $(Agent.JobName)_BuildLogs_Attempt$(System.JobAttempt)
|
|
||||||
displayName: Publish BuildLogs
|
|
||||||
continueOnError: true
|
|
||||||
condition: succeededOrFailed()
|
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
displayName: Publish Test Results
|
displayName: Publish Test Results
|
||||||
condition: succeededOrFailed()
|
condition: succeededOrFailed()
|
||||||
|
@ -268,9 +277,3 @@ jobs:
|
||||||
mergeTestResults: true
|
mergeTestResults: true
|
||||||
publishRunAttachments: true
|
publishRunAttachments: true
|
||||||
testRunTitle: SourceBuild_SmokeTests_$(Agent.JobName)
|
testRunTitle: SourceBuild_SmokeTests_$(Agent.JobName)
|
||||||
|
|
||||||
- publish: '${{ variables.sourcesPath }}/artifacts/${{ parameters.architecture }}/Release/'
|
|
||||||
artifact: $(Agent.JobName)_Artifacts
|
|
||||||
displayName: Publish Artifacts
|
|
||||||
condition: succeededOrFailed()
|
|
||||||
continueOnError: true
|
|
||||||
|
|
|
@ -2,38 +2,61 @@
|
||||||
### If run in a PR, new changes are applied to a local copy of the VMR, then it is source-built and tested
|
### If run in a PR, new changes are applied to a local copy of the VMR, then it is source-built and tested
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
dependsOn: []
|
- name: dependsOn
|
||||||
condition: always()
|
type: object
|
||||||
|
default: []
|
||||||
|
- name: condition
|
||||||
|
type: string
|
||||||
|
default: always()
|
||||||
|
|
||||||
# Branch of the VMR to use (to push to for internal builds)
|
# Branch of the VMR to use (to push to for internal builds)
|
||||||
vmrBranch: $(Build.SourceBranch)
|
- name: vmrBranch
|
||||||
|
type: string
|
||||||
|
default: $(Build.SourceBranch)
|
||||||
|
|
||||||
# True when build is running from dotnet/dotnet directly
|
# True when build is running from dotnet/dotnet directly
|
||||||
isBuiltFromVmr:
|
- name: isBuiltFromVmr
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
# The following parameters aren't expected to be passed in rather they are used for encapsulation
|
# The following parameters aren't expected to be passed in rather they are used for encapsulation
|
||||||
# -----------------------------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------------------------
|
||||||
alpine317Container: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.17
|
- name: alpine317Container
|
||||||
centOSStream8Container: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8
|
type: string
|
||||||
centOSStream9Container: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream9
|
default: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.17
|
||||||
fedora38Container: mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-38
|
- name: centOSStream8Container
|
||||||
ubuntu2204Container: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04
|
type: string
|
||||||
ubuntu2204ArmContainer: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-arm64
|
default: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8
|
||||||
|
- name: centOSStream9Container
|
||||||
|
type: string
|
||||||
|
default: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream9
|
||||||
|
- name: fedora38Container
|
||||||
|
type: string
|
||||||
|
default: mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-38
|
||||||
|
- name: ubuntu2204Container
|
||||||
|
type: string
|
||||||
|
default: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04
|
||||||
|
- name: ubuntu2204ArmContainer
|
||||||
|
type: string
|
||||||
|
default: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-arm64
|
||||||
|
|
||||||
# Internal builds
|
# These are not expected to be passed it but rather just object variables reused below
|
||||||
poolInternalAmd64:
|
- name: pool_Linux
|
||||||
name: NetCore1ESPool-Svc-Internal
|
type: object
|
||||||
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
|
default:
|
||||||
poolInternalAmd64PR:
|
name: $(defaultPoolName)
|
||||||
name: NetCore1ESPool-Internal-XL
|
image: $(poolImage_Linux)
|
||||||
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
|
demands: ImageOverride -equals $(poolImage_Linux)
|
||||||
poolInternalArm64:
|
os: linux
|
||||||
name: Docker-Linux-Arm-Internal
|
|
||||||
|
|
||||||
# Public builds / PRs
|
- name: pool_LinuxArm64
|
||||||
poolPublicAmd64:
|
type: object
|
||||||
name: NetCore-Public-XL
|
default:
|
||||||
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open
|
name: $(poolName_LinuxArm64)
|
||||||
|
image: $(poolImage_LinuxArm64)
|
||||||
|
demands: ImageOverride -equals $(poolImage_Linux)
|
||||||
|
hostArchitecture: Arm64
|
||||||
|
os: linux
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: VMR_Source_Build
|
- stage: VMR_Source_Build
|
||||||
|
@ -41,23 +64,7 @@ stages:
|
||||||
dependsOn: ${{ parameters.dependsOn }}
|
dependsOn: ${{ parameters.dependsOn }}
|
||||||
condition: ${{ parameters.condition }}
|
condition: ${{ parameters.condition }}
|
||||||
variables:
|
variables:
|
||||||
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
|
- template: ../variables/vmr-build.yml@self
|
||||||
- name: defaultPoolName
|
|
||||||
value: ${{ parameters.poolPublicAmd64.name }}
|
|
||||||
- name: defaultPoolDemands
|
|
||||||
value: ${{ parameters.poolPublicAmd64.demands }}
|
|
||||||
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
|
||||||
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
|
|
||||||
- name: defaultPoolName
|
|
||||||
value: ${{ parameters.poolInternalAmd64PR.name }}
|
|
||||||
- name: defaultPoolDemands
|
|
||||||
value: ${{ parameters.poolInternalAmd64PR.demands }}
|
|
||||||
- ${{ else }}:
|
|
||||||
- name: defaultPoolName
|
|
||||||
value: ${{ parameters.poolInternalAmd64.name }}
|
|
||||||
- name: defaultPoolDemands
|
|
||||||
value: ${{ parameters.poolInternalAmd64.demands }}
|
|
||||||
|
|
||||||
- ${{ if ne(parameters.vmrBranch, '') }}:
|
- ${{ if ne(parameters.vmrBranch, '') }}:
|
||||||
- name: VmrBranch
|
- name: VmrBranch
|
||||||
value: ${{ parameters.vmrBranch }}
|
value: ${{ parameters.vmrBranch }}
|
||||||
|
@ -69,16 +76,14 @@ stages:
|
||||||
|
|
||||||
# PR and CI legs ------------------------------------
|
# PR and CI legs ------------------------------------
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml@self
|
||||||
parameters:
|
parameters:
|
||||||
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
||||||
buildName: CentOSStream8_Online_MsftSdk
|
buildName: CentOSStream8_Online_MsftSdk
|
||||||
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
||||||
vmrBranch: ${{ variables.VmrBranch }}
|
vmrBranch: ${{ variables.VmrBranch }}
|
||||||
architecture: x64
|
architecture: x64
|
||||||
pool:
|
pool: ${{ parameters.pool_Linux }}
|
||||||
name: ${{ variables.defaultPoolName }}
|
|
||||||
demands: ${{ variables.defaultPoolDemands }}
|
|
||||||
container: ${{ parameters.centOSStream8Container }}
|
container: ${{ parameters.centOSStream8Container }}
|
||||||
buildFromArchive: false # 🚫
|
buildFromArchive: false # 🚫
|
||||||
enablePoison: false # 🚫
|
enablePoison: false # 🚫
|
||||||
|
@ -87,16 +92,14 @@ stages:
|
||||||
useMonoRuntime: false # 🚫
|
useMonoRuntime: false # 🚫
|
||||||
withPreviousSDK: false # 🚫
|
withPreviousSDK: false # 🚫
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml@self
|
||||||
parameters:
|
parameters:
|
||||||
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
||||||
buildName: CentOSStream8_Offline_MsftSdk
|
buildName: CentOSStream8_Offline_MsftSdk
|
||||||
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
||||||
vmrBranch: ${{ variables.VmrBranch }}
|
vmrBranch: ${{ variables.VmrBranch }}
|
||||||
architecture: x64
|
architecture: x64
|
||||||
pool:
|
pool: ${{ parameters.pool_Linux }}
|
||||||
name: ${{ variables.defaultPoolName }}
|
|
||||||
demands: ${{ variables.defaultPoolDemands }}
|
|
||||||
container: ${{ parameters.centOSStream8Container }}
|
container: ${{ parameters.centOSStream8Container }}
|
||||||
buildFromArchive: true # ✅
|
buildFromArchive: true # ✅
|
||||||
enablePoison: false # 🚫
|
enablePoison: false # 🚫
|
||||||
|
@ -109,16 +112,14 @@ stages:
|
||||||
|
|
||||||
# CI - Stage 1 x64 legs ------------------------------------
|
# CI - Stage 1 x64 legs ------------------------------------
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml@self
|
||||||
parameters:
|
parameters:
|
||||||
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
||||||
buildName: Alpine317_Offline_MsftSdk
|
buildName: Alpine317_Offline_MsftSdk
|
||||||
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
||||||
vmrBranch: ${{ variables.VmrBranch }}
|
vmrBranch: ${{ variables.VmrBranch }}
|
||||||
architecture: x64
|
architecture: x64
|
||||||
pool:
|
pool: ${{ parameters.pool_Linux }}
|
||||||
name: ${{ variables.defaultPoolName }}
|
|
||||||
demands: ${{ variables.defaultPoolDemands }}
|
|
||||||
container: ${{ parameters.alpine317Container }}
|
container: ${{ parameters.alpine317Container }}
|
||||||
buildFromArchive: false # ✅
|
buildFromArchive: false # ✅
|
||||||
enablePoison: false # 🚫
|
enablePoison: false # 🚫
|
||||||
|
@ -127,16 +128,14 @@ stages:
|
||||||
useMonoRuntime: false # 🚫
|
useMonoRuntime: false # 🚫
|
||||||
withPreviousSDK: false # 🚫
|
withPreviousSDK: false # 🚫
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml@self
|
||||||
parameters:
|
parameters:
|
||||||
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
||||||
buildName: CentOSStream8_Online_PreviousSourceBuiltSdk
|
buildName: CentOSStream8_Online_PreviousSourceBuiltSdk
|
||||||
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
||||||
vmrBranch: ${{ variables.VmrBranch }}
|
vmrBranch: ${{ variables.VmrBranch }}
|
||||||
architecture: x64
|
architecture: x64
|
||||||
pool:
|
pool: ${{ parameters.pool_Linux }}
|
||||||
name: ${{ variables.defaultPoolName }}
|
|
||||||
demands: ${{ variables.defaultPoolDemands }}
|
|
||||||
container: ${{ parameters.centOSStream8Container }}
|
container: ${{ parameters.centOSStream8Container }}
|
||||||
buildFromArchive: false # 🚫
|
buildFromArchive: false # 🚫
|
||||||
enablePoison: false # 🚫
|
enablePoison: false # 🚫
|
||||||
|
@ -145,16 +144,14 @@ stages:
|
||||||
useMonoRuntime: false # 🚫
|
useMonoRuntime: false # 🚫
|
||||||
withPreviousSDK: true # ✅
|
withPreviousSDK: true # ✅
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml@self
|
||||||
parameters:
|
parameters:
|
||||||
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
||||||
buildName: CentOSStream8_Offline_PreviousSourceBuiltSdk
|
buildName: CentOSStream8_Offline_PreviousSourceBuiltSdk
|
||||||
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
||||||
vmrBranch: ${{ variables.VmrBranch }}
|
vmrBranch: ${{ variables.VmrBranch }}
|
||||||
architecture: x64
|
architecture: x64
|
||||||
pool:
|
pool: ${{ parameters.pool_Linux }}
|
||||||
name: ${{ variables.defaultPoolName }}
|
|
||||||
demands: ${{ variables.defaultPoolDemands }}
|
|
||||||
container: ${{ parameters.centOSStream8Container }}
|
container: ${{ parameters.centOSStream8Container }}
|
||||||
buildFromArchive: false # 🚫
|
buildFromArchive: false # 🚫
|
||||||
enablePoison: false # 🚫
|
enablePoison: false # 🚫
|
||||||
|
@ -163,16 +160,14 @@ stages:
|
||||||
useMonoRuntime: false # 🚫
|
useMonoRuntime: false # 🚫
|
||||||
withPreviousSDK: true # ✅
|
withPreviousSDK: true # ✅
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml@self
|
||||||
parameters:
|
parameters:
|
||||||
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
||||||
buildName: CentOSStream8_Mono_Offline_MsftSdk
|
buildName: CentOSStream8_Mono_Offline_MsftSdk
|
||||||
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
||||||
vmrBranch: ${{ variables.VmrBranch }}
|
vmrBranch: ${{ variables.VmrBranch }}
|
||||||
architecture: x64
|
architecture: x64
|
||||||
pool:
|
pool: ${{ parameters.pool_Linux }}
|
||||||
name: ${{ variables.defaultPoolName }}
|
|
||||||
demands: ${{ variables.defaultPoolDemands }}
|
|
||||||
container: ${{ parameters.centOSStream8Container }}
|
container: ${{ parameters.centOSStream8Container }}
|
||||||
buildFromArchive: true # ✅
|
buildFromArchive: true # ✅
|
||||||
enablePoison: false # 🚫
|
enablePoison: false # 🚫
|
||||||
|
@ -181,16 +176,14 @@ stages:
|
||||||
useMonoRuntime: true # ✅
|
useMonoRuntime: true # ✅
|
||||||
withPreviousSDK: false # 🚫
|
withPreviousSDK: false # 🚫
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml@self
|
||||||
parameters:
|
parameters:
|
||||||
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
||||||
buildName: CentOSStream9_Offline_MsftSdk
|
buildName: CentOSStream9_Offline_MsftSdk
|
||||||
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
||||||
vmrBranch: ${{ variables.VmrBranch }}
|
vmrBranch: ${{ variables.VmrBranch }}
|
||||||
architecture: x64
|
architecture: x64
|
||||||
pool:
|
pool: ${{ parameters.pool_Linux }}
|
||||||
name: ${{ variables.defaultPoolName }}
|
|
||||||
demands: ${{ variables.defaultPoolDemands }}
|
|
||||||
container: ${{ parameters.centOSStream9Container }}
|
container: ${{ parameters.centOSStream9Container }}
|
||||||
buildFromArchive: true # ✅
|
buildFromArchive: true # ✅
|
||||||
enablePoison: false # 🚫
|
enablePoison: false # 🚫
|
||||||
|
@ -199,16 +192,14 @@ stages:
|
||||||
useMonoRuntime: false # 🚫
|
useMonoRuntime: false # 🚫
|
||||||
withPreviousSDK: false # 🚫
|
withPreviousSDK: false # 🚫
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml@self
|
||||||
parameters:
|
parameters:
|
||||||
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
||||||
buildName: Fedora38_Offline_MsftSdk
|
buildName: Fedora38_Offline_MsftSdk
|
||||||
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
||||||
vmrBranch: ${{ variables.VmrBranch }}
|
vmrBranch: ${{ variables.VmrBranch }}
|
||||||
architecture: x64
|
architecture: x64
|
||||||
pool:
|
pool: ${{ parameters.pool_Linux }}
|
||||||
name: ${{ variables.defaultPoolName }}
|
|
||||||
demands: ${{ variables.defaultPoolDemands }}
|
|
||||||
container: ${{ parameters.fedora38Container }}
|
container: ${{ parameters.fedora38Container }}
|
||||||
buildFromArchive: true # ✅
|
buildFromArchive: true # ✅
|
||||||
enablePoison: true # ✅
|
enablePoison: true # ✅
|
||||||
|
@ -217,16 +208,14 @@ stages:
|
||||||
useMonoRuntime: false # 🚫
|
useMonoRuntime: false # 🚫
|
||||||
withPreviousSDK: false # 🚫
|
withPreviousSDK: false # 🚫
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml@self
|
||||||
parameters:
|
parameters:
|
||||||
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
||||||
buildName: Ubuntu2204_Offline_MsftSdk
|
buildName: Ubuntu2204_Offline_MsftSdk
|
||||||
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
||||||
vmrBranch: ${{ variables.VmrBranch }}
|
vmrBranch: ${{ variables.VmrBranch }}
|
||||||
architecture: x64
|
architecture: x64
|
||||||
pool:
|
pool: ${{ parameters.pool_Linux }}
|
||||||
name: ${{ variables.defaultPoolName }}
|
|
||||||
demands: ${{ variables.defaultPoolDemands }}
|
|
||||||
container: ${{ parameters.ubuntu2204Container }}
|
container: ${{ parameters.ubuntu2204Container }}
|
||||||
buildFromArchive: false # 🚫
|
buildFromArchive: false # 🚫
|
||||||
enablePoison: false # 🚫
|
enablePoison: false # 🚫
|
||||||
|
@ -237,14 +226,14 @@ stages:
|
||||||
|
|
||||||
# CI - Stage 1 arm64 Legs ------------------------------------
|
# CI - Stage 1 arm64 Legs ------------------------------------
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml@self
|
||||||
parameters:
|
parameters:
|
||||||
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
||||||
buildName: Ubuntu2204Arm64_Offline_MsftSdk
|
buildName: Ubuntu2204Arm64_Offline_MsftSdk
|
||||||
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
||||||
vmrBranch: ${{ variables.VmrBranch }}
|
vmrBranch: ${{ variables.VmrBranch }}
|
||||||
architecture: arm64
|
architecture: arm64
|
||||||
pool: ${{ parameters.poolInternalArm64 }}
|
pool: ${{ parameters.pool_LinuxArm64 }}
|
||||||
container: ${{ parameters.ubuntu2204ArmContainer }}
|
container: ${{ parameters.ubuntu2204ArmContainer }}
|
||||||
buildFromArchive: false # 🚫
|
buildFromArchive: false # 🚫
|
||||||
enablePoison: false # 🚫
|
enablePoison: false # 🚫
|
||||||
|
@ -255,16 +244,14 @@ stages:
|
||||||
|
|
||||||
# CI - Stage 2 x64 Legs ------------------------------------
|
# CI - Stage 2 x64 Legs ------------------------------------
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml@self
|
||||||
parameters:
|
parameters:
|
||||||
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
||||||
buildName: CentOSStream8_Online_CurrentSourceBuiltSdk
|
buildName: CentOSStream8_Online_CurrentSourceBuiltSdk
|
||||||
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
||||||
vmrBranch: ${{ variables.VmrBranch }}
|
vmrBranch: ${{ variables.VmrBranch }}
|
||||||
architecture: x64
|
architecture: x64
|
||||||
pool:
|
pool: ${{ parameters.pool_Linux }}
|
||||||
name: ${{ variables.defaultPoolName }}
|
|
||||||
demands: ${{ variables.defaultPoolDemands }}
|
|
||||||
container: ${{ parameters.centOSStream8Container }}
|
container: ${{ parameters.centOSStream8Container }}
|
||||||
buildFromArchive: false # 🚫
|
buildFromArchive: false # 🚫
|
||||||
enablePoison: false # 🚫
|
enablePoison: false # 🚫
|
||||||
|
@ -274,16 +261,14 @@ stages:
|
||||||
withPreviousSDK: false # 🚫
|
withPreviousSDK: false # 🚫
|
||||||
reuseBuildArtifactsFrom: CentOSStream8_Online_MsftSdk
|
reuseBuildArtifactsFrom: CentOSStream8_Online_MsftSdk
|
||||||
|
|
||||||
- template: ../jobs/vmr-build.yml
|
- template: ../jobs/vmr-build.yml@self
|
||||||
parameters:
|
parameters:
|
||||||
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
|
||||||
buildName: Fedora38_Offline_CurrentSourceBuiltSdk
|
buildName: Fedora38_Offline_CurrentSourceBuiltSdk
|
||||||
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
|
||||||
vmrBranch: ${{ variables.VmrBranch }}
|
vmrBranch: ${{ variables.VmrBranch }}
|
||||||
architecture: x64
|
architecture: x64
|
||||||
pool:
|
pool: ${{ parameters.pool_Linux }}
|
||||||
name: ${{ variables.defaultPoolName }}
|
|
||||||
demands: ${{ variables.defaultPoolDemands }}
|
|
||||||
container: ${{ parameters.fedora38Container }}
|
container: ${{ parameters.fedora38Container }}
|
||||||
buildFromArchive: false # 🚫
|
buildFromArchive: false # 🚫
|
||||||
enablePoison: false # 🚫
|
enablePoison: false # 🚫
|
||||||
|
|
24
eng/pipelines/templates/variables/vmr-build.yml
Normal file
24
eng/pipelines/templates/variables/vmr-build.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
variables:
|
||||||
|
|
||||||
|
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
|
||||||
|
- name: defaultPoolName
|
||||||
|
value: NetCore-Public-XL
|
||||||
|
- name: poolImage_Linux
|
||||||
|
value: 1es-ubuntu-2004-open
|
||||||
|
- name: poolImage_LinuxArm64
|
||||||
|
value: Mariner-2-Docker-ARM64
|
||||||
|
- name: poolName_LinuxArm64
|
||||||
|
value: Docker-Linux-Arm-Public
|
||||||
|
- ${{ else }}:
|
||||||
|
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
|
||||||
|
- name: defaultPoolName
|
||||||
|
value: NetCore1ESPool-Internal-XL
|
||||||
|
- ${{ else }}:
|
||||||
|
- name: defaultPoolName
|
||||||
|
value: $(DncEngInternalBuildPool)
|
||||||
|
- name: poolImage_Linux
|
||||||
|
value: 1es-ubuntu-2204
|
||||||
|
- name: poolImage_LinuxArm64
|
||||||
|
value: Mariner-2-Docker-ARM64
|
||||||
|
- name: poolName_LinuxArm64
|
||||||
|
value: Docker-Linux-Arm-Internal
|
|
@ -15,10 +15,28 @@ pr:
|
||||||
- release/*
|
- release/*
|
||||||
- internal/release/*
|
- internal/release/*
|
||||||
|
|
||||||
stages:
|
resources:
|
||||||
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
repositories:
|
||||||
- template: templates/stages/vmr-scan.yml
|
- repository: 1ESPipelineTemplates
|
||||||
|
type: git
|
||||||
|
name: 1ESPipelineTemplates/1ESPipelineTemplates
|
||||||
|
ref: refs/tags/release
|
||||||
|
|
||||||
- template: /src/installer/eng/pipelines/templates/stages/vmr-build.yml
|
extends:
|
||||||
|
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
|
||||||
parameters:
|
parameters:
|
||||||
isBuiltFromVmr: true
|
sdl:
|
||||||
|
sourceAnalysisPool:
|
||||||
|
name: NetCore1ESPool-Internal
|
||||||
|
image: 1es-windows-2022
|
||||||
|
os: windows
|
||||||
|
|
||||||
|
customBuildTags:
|
||||||
|
- ES365AIMigrationTooling
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
||||||
|
- template: /eng/pipelines/templates/stages/vmr-scan.yml@self
|
||||||
|
- template: /src/installer/eng/pipelines/templates/stages/vmr-build.yml@self
|
||||||
|
parameters:
|
||||||
|
isBuiltFromVmr: true
|
||||||
|
|
|
@ -3,17 +3,22 @@ stages:
|
||||||
displayName: Tag & Scan
|
displayName: Tag & Scan
|
||||||
dependsOn: []
|
dependsOn: []
|
||||||
variables:
|
variables:
|
||||||
- template: /eng/common/templates/variables/pool-providers.yml
|
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
|
||||||
|
- template: /eng/common/templates/variables/pool-providers.yml
|
||||||
|
- ${{ else }}:
|
||||||
|
- template: /eng/common/templates-official/variables/pool-providers.yml
|
||||||
jobs:
|
jobs:
|
||||||
- job: Tag_n_Scan
|
- job: Tag_n_Scan
|
||||||
displayName: Tag & Scan
|
displayName: Tag & Scan
|
||||||
pool:
|
pool:
|
||||||
${{ if eq(variables['System.TeamProject'], 'public') }}:
|
${{ if eq(variables['System.TeamProject'], 'public') }}:
|
||||||
name: $(DncEngPublicBuildPool)
|
name: $(DncEngPublicBuildPool)
|
||||||
demands: ImageOverride -equals Build.Ubuntu.2004.Amd64.Open
|
image: 1es-ubuntu-2004-open
|
||||||
|
os: linux
|
||||||
${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
||||||
name: $(DncEngInternalBuildPool)
|
name: $(DncEngInternalBuildPool)
|
||||||
demands: ImageOverride -equals Build.Ubuntu.2004.Amd64
|
image: 1es-ubuntu-2004
|
||||||
|
os: linux
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
|
|
Loading…
Reference in a new issue