Skip to content

Commit

Permalink
Comment-out jobs instead of using variables
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaMilosavljevic committed Sep 16, 2024
1 parent 64f4c0d commit 935070d
Showing 1 changed file with 109 additions and 120 deletions.
229 changes: 109 additions & 120 deletions eng/pipelines/templates/stages/vmr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ parameters:
type: boolean
default: false

# True when Stage-2 source-only builds are enabled
- name: enableStage2Builds
type: boolean
default: false

# These are not expected to be passed it but rather just object variables reused below
- name: pool_Linux
type: object
Expand Down Expand Up @@ -109,45 +104,43 @@ stages:
### Additional jobs for lite/full builds ###
- ${{ if in(parameters.scope, 'lite', 'full') }}:

- ${{ if parameters.enableStage2Builds }}:
- template: ../jobs/vmr-build.yml
parameters:
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
buildName: ${{ format('{0}_Online_CurrentSourceBuiltSdk', variables.centOSStreamName) }}
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
vmrBranch: ${{ variables.VmrBranch }}
architecture: x64
pool: ${{ parameters.pool_Linux }}
container: ${{ variables.centOSStreamContainer }}
buildFromArchive: false # 🚫
buildSourceOnly: true #
enablePoison: false # 🚫
excludeOmniSharpTests: true #
runOnline: true #
useMonoRuntime: false # 🚫
withPreviousSDK: false # 🚫
reuseBuildArtifactsFrom:
- ${{ format('{0}_Online_MsftSdk_x64', variables.centOSStreamName) }}

- ${{ if parameters.enableStage2Builds }}:
- template: ../jobs/vmr-build.yml
parameters:
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
buildName: ${{ format('{0}_Offline_PreviousSourceBuiltSdk', variables.alpinePreviousName) }}
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
vmrBranch: ${{ variables.VmrBranch }}
architecture: x64
artifactsRid: ${{ variables.alpinePreviousX64Rid }}
pool: ${{ parameters.pool_Linux }}
container: ${{ variables.alpinePreviousContainer }}
targetRid: ${{ variables.alpinePreviousX64Rid }}
buildFromArchive: false # 🚫
buildSourceOnly: true #
enablePoison: true #
excludeOmniSharpTests: true #
runOnline: false # 🚫
useMonoRuntime: false # 🚫
withPreviousSDK: true #
# - template: ../jobs/vmr-build.yml
# parameters:
# # Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
# buildName: ${{ format('{0}_Online_CurrentSourceBuiltSdk', variables.centOSStreamName) }}
# isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
# vmrBranch: ${{ variables.VmrBranch }}
# architecture: x64
# pool: ${{ parameters.pool_Linux }}
# container: ${{ variables.centOSStreamContainer }}
# buildFromArchive: false # 🚫
# buildSourceOnly: true # ✅
# enablePoison: false # 🚫
# excludeOmniSharpTests: true # ✅
# runOnline: true # ✅
# useMonoRuntime: false # 🚫
# withPreviousSDK: false # 🚫
# reuseBuildArtifactsFrom:
# - ${{ format('{0}_Online_MsftSdk_x64', variables.centOSStreamName) }}

# - template: ../jobs/vmr-build.yml
# parameters:
# # Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
# buildName: ${{ format('{0}_Offline_PreviousSourceBuiltSdk', variables.alpinePreviousName) }}
# isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
# vmrBranch: ${{ variables.VmrBranch }}
# architecture: x64
# artifactsRid: ${{ variables.alpinePreviousX64Rid }}
# pool: ${{ parameters.pool_Linux }}
# container: ${{ variables.alpinePreviousContainer }}
# targetRid: ${{ variables.alpinePreviousX64Rid }}
# buildFromArchive: false # 🚫
# buildSourceOnly: true # ✅
# enablePoison: true # ✅
# excludeOmniSharpTests: true # ✅
# runOnline: false # 🚫
# useMonoRuntime: false # 🚫
# withPreviousSDK: true # ✅

### Additional jobs for full build ###
- ${{ if in(parameters.scope, 'full') }}:
Expand Down Expand Up @@ -206,43 +199,41 @@ stages:
useMonoRuntime: false # 🚫
withPreviousSDK: false # 🚫

- ${{ if parameters.enableStage2Builds }}:
- template: ../jobs/vmr-build.yml
parameters:
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
buildName: ${{ format('{0}_Online_PreviousSourceBuiltSdk', variables.centOSStreamName) }}
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
vmrBranch: ${{ variables.VmrBranch }}
architecture: x64
artifactsRid: ${{ variables.centOSStreamX64Rid }}
pool: ${{ parameters.pool_Linux }}
container: ${{ variables.centOSStreamContainer }}
buildFromArchive: false # 🚫
buildSourceOnly: true #
enablePoison: false # 🚫
excludeOmniSharpTests: false # 🚫
runOnline: true #
useMonoRuntime: false # 🚫
withPreviousSDK: true #

- ${{ if parameters.enableStage2Builds }}:
- template: ../jobs/vmr-build.yml
parameters:
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
buildName: ${{ format('{0}_Offline_PreviousSourceBuiltSdk', variables.centOSStreamName) }}
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
vmrBranch: ${{ variables.VmrBranch }}
architecture: x64
artifactsRid: ${{ variables.centOSStreamX64Rid }}
pool: ${{ parameters.pool_Linux }}
container: ${{ variables.centOSStreamContainer }}
buildFromArchive: false # 🚫
buildSourceOnly: true #
enablePoison: false # 🚫
excludeOmniSharpTests: true #
runOnline: false # 🚫
useMonoRuntime: false # 🚫
withPreviousSDK: true #
# - template: ../jobs/vmr-build.yml
# parameters:
# # Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
# buildName: ${{ format('{0}_Online_PreviousSourceBuiltSdk', variables.centOSStreamName) }}
# isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
# vmrBranch: ${{ variables.VmrBranch }}
# architecture: x64
# artifactsRid: ${{ variables.centOSStreamX64Rid }}
# pool: ${{ parameters.pool_Linux }}
# container: ${{ variables.centOSStreamContainer }}
# buildFromArchive: false # 🚫
# buildSourceOnly: true # ✅
# enablePoison: false # 🚫
# excludeOmniSharpTests: false # 🚫
# runOnline: true # ✅
# useMonoRuntime: false # 🚫
# withPreviousSDK: true # ✅

# - template: ../jobs/vmr-build.yml
# parameters:
# # Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
# buildName: ${{ format('{0}_Offline_PreviousSourceBuiltSdk', variables.centOSStreamName) }}
# isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
# vmrBranch: ${{ variables.VmrBranch }}
# architecture: x64
# artifactsRid: ${{ variables.centOSStreamX64Rid }}
# pool: ${{ parameters.pool_Linux }}
# container: ${{ variables.centOSStreamContainer }}
# buildFromArchive: false # 🚫
# buildSourceOnly: true # ✅
# enablePoison: false # 🚫
# excludeOmniSharpTests: true # ✅
# runOnline: false # 🚫
# useMonoRuntime: false # 🚫
# withPreviousSDK: true # ✅

- template: ../jobs/vmr-build.yml
parameters:
Expand Down Expand Up @@ -312,45 +303,43 @@ stages:
useMonoRuntime: false # 🚫
withPreviousSDK: false # 🚫

- ${{ if parameters.enableStage2Builds }}:
- template: ../jobs/vmr-build.yml
parameters:
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
buildName: ${{ format('{0}_Offline_CurrentSourceBuiltSdk', variables.fedoraName) }}
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
vmrBranch: ${{ variables.VmrBranch }}
architecture: x64
pool: ${{ parameters.pool_Linux }}
container: ${{ variables.fedoraContainer }}
buildFromArchive: false # 🚫
buildSourceOnly: true #
enablePoison: false # 🚫
excludeOmniSharpTests: false # 🚫
runOnline: false # 🚫
useMonoRuntime: false # 🚫
withPreviousSDK: false # 🚫
reuseBuildArtifactsFrom:
- ${{ format('{0}_Offline_MsftSdk_x64', variables.fedoraName) }}

- ${{ if parameters.enableStage2Builds }}:
- template: ../jobs/vmr-build.yml
parameters:
# Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
buildName: ${{ format('{0}_Mono_Offline_CurrentSourceBuiltSdk', variables.centOSStreamName) }}
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
vmrBranch: ${{ variables.VmrBranch }}
architecture: x64
pool: ${{ parameters.pool_Linux }}
container: ${{ variables.centOSStreamContainer }}
buildFromArchive: true #
buildSourceOnly: true #
enablePoison: false # 🚫
excludeOmniSharpTests: true #
runOnline: false # 🚫
useMonoRuntime: true #
withPreviousSDK: false # 🚫
reuseBuildArtifactsFrom:
- ${{ format('{0}_Mono_Offline_MsftSdk_x64', variables.centOSStreamName) }}
# - template: ../jobs/vmr-build.yml
# parameters:
# # Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
# buildName: ${{ format('{0}_Offline_CurrentSourceBuiltSdk', variables.fedoraName) }}
# isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
# vmrBranch: ${{ variables.VmrBranch }}
# architecture: x64
# pool: ${{ parameters.pool_Linux }}
# container: ${{ variables.fedoraContainer }}
# buildFromArchive: false # 🚫
# buildSourceOnly: true # ✅
# enablePoison: false # 🚫
# excludeOmniSharpTests: false # 🚫
# runOnline: false # 🚫
# useMonoRuntime: false # 🚫
# withPreviousSDK: false # 🚫
# reuseBuildArtifactsFrom:
# - ${{ format('{0}_Offline_MsftSdk_x64', variables.fedoraName) }}

# - template: ../jobs/vmr-build.yml
# parameters:
# # Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline
# buildName: ${{ format('{0}_Mono_Offline_CurrentSourceBuiltSdk', variables.centOSStreamName) }}
# isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
# vmrBranch: ${{ variables.VmrBranch }}
# architecture: x64
# pool: ${{ parameters.pool_Linux }}
# container: ${{ variables.centOSStreamContainer }}
# buildFromArchive: true # ✅
# buildSourceOnly: true # ✅
# enablePoison: false # 🚫
# excludeOmniSharpTests: true # ✅
# runOnline: false # 🚫
# useMonoRuntime: true # ✅
# withPreviousSDK: false # 🚫
# reuseBuildArtifactsFrom:
# - ${{ format('{0}_Mono_Offline_MsftSdk_x64', variables.centOSStreamName) }}

#### VERTICAL BUILD ####
- ${{ if not(parameters.isSourceOnlyBuild) }}:
Expand Down

0 comments on commit 935070d

Please sign in to comment.