Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 1bd06b6

Browse files
Bot Updating Templated Files
1 parent be32e02 commit 1bd06b6

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Jenkinsfile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,9 @@ pipeline {
356356
// Build Docker container for push to LS Repo
357357
stage('Build-Single') {
358358
when {
359-
environment name: 'MULTIARCH', value: 'false'
359+
expression {
360+
env.MULTIARCH == 'false' || params.PACKAGE_CHECK == 'true'
361+
}
360362
environment name: 'EXIT_STATUS', value: ''
361363
}
362364
steps {
@@ -381,7 +383,10 @@ pipeline {
381383
// Build MultiArch Docker containers for push to LS Repo
382384
stage('Build-Multi') {
383385
when {
384-
environment name: 'MULTIARCH', value: 'true'
386+
allOf {
387+
environment name: 'MULTIARCH', value: 'true'
388+
expression { params.PACKAGE_CHECK == 'false' }
389+
}
385390
environment name: 'EXIT_STATUS', value: ''
386391
}
387392
parallel {
@@ -486,7 +491,7 @@ pipeline {
486491
sh '''#! /bin/bash
487492
set -e
488493
TEMPDIR=$(mktemp -d)
489-
if [ "${MULTIARCH}" == "true" ]; then
494+
if [ "${MULTIARCH}" == "true" ] && [ "${PACKAGE_CHECK}" == "false" ]; then
490495
LOCAL_CONTAINER=${IMAGE}:amd64-${META_TAG}
491496
else
492497
LOCAL_CONTAINER=${IMAGE}:${META_TAG}
@@ -547,7 +552,7 @@ pipeline {
547552
steps {
548553
sh '''#! /bin/bash
549554
echo "Packages were updated. Cleaning up the image and exiting."
550-
if [ "${MULTIARCH}" == "true" ]; then
555+
if [ "${MULTIARCH}" == "true" ] && [ "${PACKAGE_CHECK}" == "false" ]; then
551556
docker rmi ${IMAGE}:amd64-${META_TAG}
552557
else
553558
docker rmi ${IMAGE}:${META_TAG}
@@ -571,7 +576,7 @@ pipeline {
571576
steps {
572577
sh '''#! /bin/bash
573578
echo "There are no package updates. Cleaning up the image and exiting."
574-
if [ "${MULTIARCH}" == "true" ]; then
579+
if [ "${MULTIARCH}" == "true" ] && [ "${PACKAGE_CHECK}" == "false" ]; then
575580
docker rmi ${IMAGE}:amd64-${META_TAG}
576581
else
577582
docker rmi ${IMAGE}:${META_TAG}

0 commit comments

Comments
 (0)