Skip to content

Commit 59f857b

Browse files
Bot Updating Templated Files
1 parent db7ab3c commit 59f857b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Jenkinsfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ pipeline {
510510
sh '''#! /bin/bash
511511
set -e
512512
TEMPDIR=$(mktemp -d)
513-
if [ "${MULTIARCH}" == "true" ]; then
513+
if [ "${MULTIARCH}" == "true" ] && [ "${PACKAGE_CHECK}" == "false" ]; then
514514
LOCAL_CONTAINER=${IMAGE}:amd64-${META_TAG}
515515
else
516516
LOCAL_CONTAINER=${IMAGE}:${META_TAG}
@@ -571,7 +571,7 @@ pipeline {
571571
steps {
572572
sh '''#! /bin/bash
573573
echo "Packages were updated. Cleaning up the image and exiting."
574-
if [ "${MULTIARCH}" == "true" ]; then
574+
if [ "${MULTIARCH}" == "true" ] && [ "${PACKAGE_CHECK}" == "false" ]; then
575575
docker rmi ${IMAGE}:amd64-${META_TAG}
576576
else
577577
docker rmi ${IMAGE}:${META_TAG}
@@ -595,7 +595,7 @@ pipeline {
595595
steps {
596596
sh '''#! /bin/bash
597597
echo "There are no package updates. Cleaning up the image and exiting."
598-
if [ "${MULTIARCH}" == "true" ]; then
598+
if [ "${MULTIARCH}" == "true" ] && [ "${PACKAGE_CHECK}" == "false" ]; then
599599
docker rmi ${IMAGE}:amd64-${META_TAG}
600600
else
601601
docker rmi ${IMAGE}:${META_TAG}

0 commit comments

Comments
 (0)