@@ -366,7 +366,9 @@ pipeline {
366366 // Build Docker container for push to LS Repo
367367 stage(' Build-Single' ) {
368368 when {
369- environment name : ' MULTIARCH' , value : ' false'
369+ expression {
370+ env. MULTIARCH == ' false' || params. PACKAGE_CHECK == ' true'
371+ }
370372 environment name : ' EXIT_STATUS' , value : ' '
371373 }
372374 steps {
@@ -391,7 +393,10 @@ pipeline {
391393 // Build MultiArch Docker containers for push to LS Repo
392394 stage(' Build-Multi' ) {
393395 when {
394- environment name : ' MULTIARCH' , value : ' true'
396+ allOf {
397+ environment name : ' MULTIARCH' , value : ' true'
398+ expression { params. PACKAGE_CHECK == ' false' }
399+ }
395400 environment name : ' EXIT_STATUS' , value : ' '
396401 }
397402 parallel {
@@ -496,7 +501,7 @@ pipeline {
496501 sh ''' #! /bin/bash
497502 set -e
498503 TEMPDIR=$(mktemp -d)
499- if [ "${MULTIARCH}" == "true" ]; then
504+ if [ "${MULTIARCH}" == "true" ] && [ "${PACKAGE_CHECK}" == "false" ] ; then
500505 LOCAL_CONTAINER=${IMAGE}:amd64-${META_TAG}
501506 else
502507 LOCAL_CONTAINER=${IMAGE}:${META_TAG}
@@ -557,7 +562,7 @@ pipeline {
557562 steps {
558563 sh ''' #! /bin/bash
559564 echo "Packages were updated. Cleaning up the image and exiting."
560- if [ "${MULTIARCH}" == "true" ]; then
565+ if [ "${MULTIARCH}" == "true" ] && [ "${PACKAGE_CHECK}" == "false" ] ; then
561566 docker rmi ${IMAGE}:amd64-${META_TAG}
562567 else
563568 docker rmi ${IMAGE}:${META_TAG}
@@ -581,7 +586,7 @@ pipeline {
581586 steps {
582587 sh ''' #! /bin/bash
583588 echo "There are no package updates. Cleaning up the image and exiting."
584- if [ "${MULTIARCH}" == "true" ]; then
589+ if [ "${MULTIARCH}" == "true" ] && [ "${PACKAGE_CHECK}" == "false" ] ; then
585590 docker rmi ${IMAGE}:amd64-${META_TAG}
586591 else
587592 docker rmi ${IMAGE}:${META_TAG}
0 commit comments