Skip to content

Commit 3ddcf9a

Browse files
committed
test: focused conditional
1 parent e72fd62 commit 3ddcf9a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.pipelines/build/images.jobs.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ jobs:
77
- ${{ each job_data in parameters.images }}:
88
- job: pkg_${{ job_data.job }}
99
displayName: "Prepare Image Package - ${{ job_data.displayName }} -"
10-
${{ if job_data.condition }}:
11-
condition: ${{ job_data.condition }}
10+
${{ if job_data.strategy.matrix.azure_ip_masq_merger }}:
11+
condition: ${{ job_data.strategy.matrix.azure_ip_masq_merger.shouldRun }}
12+
${{ if job_data.strategy.matrix.npm }}:
13+
condition: ${{ job_data.strategy.matrix.npm.shouldRun }}
1214
${{ if job_data.strategy }}:
1315
strategy: ${{ job_data.strategy }}
1416
${{ if job_data.dependsOn }}:

.pipelines/run-pipeline.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ stages:
2626
archiveName: azure-ip-masq-merger
2727
archiveVersion: $(AZURE_IP_MASQ_MERGER_VERSION)
2828
imageTag: $(Build.BuildNumber)
29-
condition: contains( variables['acn-ref'] , 'v1.7')
29+
shouldRun: contains( variables['acn-ref'] , 'v1.7')
3030
npm:
3131
name: npm
3232
extraArgs: '--build-arg NPM_AI_PATH=$(NPM_AI_PATH) --build-arg NPM_AI_ID=$(NPM_AI_ID)'
3333
archiveName: azure-npm
3434
archiveVersion: $(NPM_VERSION)
3535
imageTag: $(Build.BuildNumber)
36-
condition: contains( variables['acn-ref'] , 'v1.6')
36+
shouldRun: contains( variables['acn-ref'] , 'v1.6')
3737

3838
- job: copy
3939
displayName: Copy Pipeline Files

0 commit comments

Comments
 (0)