Skip to content

Commit

Permalink
chore: refactor DRY_RUN for creating VHD blobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Meissner committed Nov 15, 2024
1 parent 686a986 commit c762264
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 76 deletions.
53 changes: 5 additions & 48 deletions .pipelines/.vsts-vhd-builder-release.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: $(Date:yyyyMMdd)$(Rev:.r)_$(Build.SourceBranchName)_$(BuildID)
trigger: none

variables:
- group: aks-vuln-to-kusto

pool:
name: $(POOL_NAME)

Expand Down Expand Up @@ -180,10 +177,11 @@ parameters:
displayName: Build 2204 Minimal Gen2 Containerd
type: boolean
default: false
- name: dryrun
displayName: Dry run
type: boolean
default: False

variables:
- group: aks-vuln-to-kusto
- name: DRY_RUN
value: False

stages:
- stage: build
Expand All @@ -194,7 +192,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]18.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -221,7 +218,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]18.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -248,7 +244,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]18.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -275,7 +270,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]18.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -302,7 +296,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]CBLMariner'
echo '##vso[task.setvariable variable=OS_VERSION]V2'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand Down Expand Up @@ -330,7 +323,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]AzureLinux'
echo '##vso[task.setvariable variable=OS_VERSION]V2'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand Down Expand Up @@ -358,7 +350,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]AzureLinux'
echo '##vso[task.setvariable variable=OS_VERSION]V3'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand All @@ -384,7 +375,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]CBLMariner'
echo '##vso[task.setvariable variable=OS_VERSION]V2'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand Down Expand Up @@ -412,7 +402,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]AzureLinux'
echo '##vso[task.setvariable variable=OS_VERSION]V2'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand Down Expand Up @@ -440,7 +429,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]AzureLinux'
echo '##vso[task.setvariable variable=OS_VERSION]V3'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand All @@ -466,7 +454,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]CBLMariner'
echo '##vso[task.setvariable variable=OS_VERSION]V2'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand Down Expand Up @@ -494,7 +481,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]AzureLinux'
echo '##vso[task.setvariable variable=OS_VERSION]V2'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand Down Expand Up @@ -522,7 +508,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]AzureLinux'
echo '##vso[task.setvariable variable=OS_VERSION]V3'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand All @@ -548,7 +533,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]CBLMariner'
echo '##vso[task.setvariable variable=OS_VERSION]V2'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand Down Expand Up @@ -576,7 +560,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]AzureLinux'
echo '##vso[task.setvariable variable=OS_VERSION]V2'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand Down Expand Up @@ -604,7 +587,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]AzureLinux'
echo '##vso[task.setvariable variable=OS_VERSION]V3'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand All @@ -630,7 +612,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]CBLMariner'
echo '##vso[task.setvariable variable=OS_VERSION]V2'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand Down Expand Up @@ -658,7 +639,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]AzureLinux'
echo '##vso[task.setvariable variable=OS_VERSION]V2'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand Down Expand Up @@ -686,7 +666,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]AzureLinux'
echo '##vso[task.setvariable variable=OS_VERSION]V3'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand All @@ -712,7 +691,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]CBLMariner'
echo '##vso[task.setvariable variable=OS_VERSION]V2kata'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand Down Expand Up @@ -740,7 +718,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]AzureLinux'
echo '##vso[task.setvariable variable=OS_VERSION]V2kata'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand Down Expand Up @@ -768,7 +745,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]CBLMariner'
echo '##vso[task.setvariable variable=OS_VERSION]V2'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand Down Expand Up @@ -796,7 +772,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]AzureLinux'
echo '##vso[task.setvariable variable=OS_VERSION]V2'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand Down Expand Up @@ -824,7 +799,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]CBLMariner'
echo '##vso[task.setvariable variable=OS_VERSION]V2kata'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand Down Expand Up @@ -852,7 +826,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]AzureLinux'
echo '##vso[task.setvariable variable=OS_VERSION]V2kata'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand Down Expand Up @@ -880,7 +853,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]18.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -907,7 +879,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]18.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -934,7 +905,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]20.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -961,7 +931,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]20.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -988,7 +957,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]22.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand Down Expand Up @@ -1016,7 +984,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]22.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand Down Expand Up @@ -1044,7 +1011,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]22.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -1071,7 +1037,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]24.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -1098,7 +1063,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]22.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -1125,7 +1089,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]22.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -1152,7 +1115,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]24.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -1179,7 +1141,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]24.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -1206,7 +1167,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]20.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -1233,7 +1193,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]22.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -1260,7 +1219,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]22.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -1287,7 +1245,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]22.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand Down
7 changes: 3 additions & 4 deletions .pipelines/.vsts-vhd-builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ pool:
name: $(POOL_NAME)

variables:
- group: aks-vuln-to-kusto
- group: aks-vuln-to-kusto
- name: DRY_RUN
value: False

stages:
- stage: build
Expand All @@ -33,7 +35,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]False'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]22.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -56,7 +57,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]False'
echo '##vso[task.setvariable variable=OS_SKU]Ubuntu'
echo '##vso[task.setvariable variable=OS_VERSION]18.04'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical'
Expand All @@ -79,7 +79,6 @@ stages:
timeoutInMinutes: 180
steps:
- bash: |
echo '##vso[task.setvariable variable=DRY_RUN]False'
echo '##vso[task.setvariable variable=OS_SKU]CBLMariner'
echo '##vso[task.setvariable variable=OS_VERSION]V2'
echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner'
Expand Down
Loading

0 comments on commit c762264

Please sign in to comment.