Skip to content

Commit a78f205

Browse files
committed
test variable from strategy
1 parent 3ddcf9a commit a78f205

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.pipelines/build/images.jobs.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ 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.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 }}
10+
${{ if job_data.condition }}:
11+
condition: ${{ job_data.condition }}
1412
${{ if job_data.strategy }}:
1513
strategy: ${{ job_data.strategy }}
1614
${{ if job_data.dependsOn }}:

.pipelines/run-pipeline.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ stages:
1717
repositoryArtifact: drop_setup_env_source
1818
buildScript: .pipelines/build/scripts/$(name).sh
1919
obDockerfile: .pipelines/build/dockerfiles/$(name).Dockerfile
20+
condition: contains( variables['acn-ref'] , variables['version'])
2021
strategy:
2122
maxParallel: 5
2223
matrix:
@@ -26,14 +27,14 @@ stages:
2627
archiveName: azure-ip-masq-merger
2728
archiveVersion: $(AZURE_IP_MASQ_MERGER_VERSION)
2829
imageTag: $(Build.BuildNumber)
29-
shouldRun: contains( variables['acn-ref'] , 'v1.7')
30+
version: 'v1.7'
3031
npm:
3132
name: npm
3233
extraArgs: '--build-arg NPM_AI_PATH=$(NPM_AI_PATH) --build-arg NPM_AI_ID=$(NPM_AI_ID)'
3334
archiveName: azure-npm
3435
archiveVersion: $(NPM_VERSION)
3536
imageTag: $(Build.BuildNumber)
36-
shouldRun: contains( variables['acn-ref'] , 'v1.6')
37+
version: 'v1.6'
3738

3839
- job: copy
3940
displayName: Copy Pipeline Files

0 commit comments

Comments
 (0)