Skip to content

Commit 655d5cf

Browse files
committed
ci: job skip based on release train state
1 parent 4acb88b commit 655d5cf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.pipelines/build/images.jobs.yaml

Lines changed: 5 additions & 3 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 archiveVersion is empty then the respective component does not exist in that release train
11+
condition: and(succeeded(), ne(variables['archiveVersion'], ''))
1012
${{ if job_data.strategy }}:
1113
strategy: ${{ job_data.strategy }}
1214
${{ if job_data.dependsOn }}:
@@ -76,15 +78,15 @@ jobs:
7678
- task: ShellScript@2
7779
displayName: "Package with DropGZ"
7880
condition: and(
79-
succeeded(),
81+
succeeded(),
8082
eq(variables.packageWithDropGZ, 'True'))
8183
inputs:
8284
scriptPath: $(REPO_ROOT)/.pipelines/build/scripts/dropgz.sh
8385

8486
- ${{ if not(contains(job_data.job, 'linux')) }}:
8587
- task: onebranch.pipeline.signing@1
8688
condition: and(
87-
succeeded(),
89+
succeeded(),
8890
eq(variables.packageWithDropGZ, 'True'))
8991
inputs:
9092
command: 'sign'
@@ -94,7 +96,7 @@ jobs:
9496

9597
# OneBranch artifacts are stored on a Windows machine which obliterates
9698
# Linux file permissions.
97-
# This task is added (along with ob_extract_root_artifact in jobs that
99+
# This task is added (along with ob_extract_root_artifact in jobs that
98100
# download the artifact) to protect those file permissions from changing
99101
# during image build time.
100102
#

0 commit comments

Comments
 (0)