Skip to content

Commit 171e591

Browse files
committed
test: job_data.condition
1 parent 74769a4 commit 171e591

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.pipelines/build/images.jobs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +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.condition }}:
11+
condition: ${{ if job_data.condition }}
1012
${{ if job_data.strategy }}:
1113
strategy: ${{ job_data.strategy }}
1214
${{ if job_data.dependsOn }}:

.pipelines/run-pipeline.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ stages:
6363
images:
6464
- job: linux_amd64
6565
displayName: "Linux/AMD64"
66+
condition: contains( variables['acn-ref'] , 'v1.7')
6667
templateContext:
6768
repositoryArtifact: drop_setup_env_source
6869
buildScript: .pipelines/build/scripts/$(name).sh
@@ -83,7 +84,7 @@ stages:
8384
archiveName: azure-ip-masq-merger
8485
archiveVersion: $(AZURE_IP_MASQ_MERGER_VERSION)
8586
imageTag: $(Build.BuildNumber)
86-
condition: contains( variables['acn-ref'] , 'v1.7')
87+
8788

8889
- job: env
8990
displayName: Setup

0 commit comments

Comments
 (0)