|
|
@ -377,7 +377,9 @@ pipeline {
|
|
|
|
// Build Docker container for push to LS Repo
|
|
|
|
// Build Docker container for push to LS Repo
|
|
|
|
stage('Build-Single') {
|
|
|
|
stage('Build-Single') {
|
|
|
|
when {
|
|
|
|
when {
|
|
|
|
environment name: 'MULTIARCH', value: 'false'
|
|
|
|
expression {
|
|
|
|
|
|
|
|
env.MULTIARCH == 'false' || params.PACKAGE_CHECK == 'true'
|
|
|
|
|
|
|
|
}
|
|
|
|
environment name: 'EXIT_STATUS', value: ''
|
|
|
|
environment name: 'EXIT_STATUS', value: ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
steps {
|
|
|
@ -402,7 +404,10 @@ pipeline {
|
|
|
|
// Build MultiArch Docker containers for push to LS Repo
|
|
|
|
// Build MultiArch Docker containers for push to LS Repo
|
|
|
|
stage('Build-Multi') {
|
|
|
|
stage('Build-Multi') {
|
|
|
|
when {
|
|
|
|
when {
|
|
|
|
environment name: 'MULTIARCH', value: 'true'
|
|
|
|
allOf {
|
|
|
|
|
|
|
|
environment name: 'MULTIARCH', value: 'true'
|
|
|
|
|
|
|
|
expression { params.PACKAGE_CHECK == 'false' }
|
|
|
|
|
|
|
|
}
|
|
|
|
environment name: 'EXIT_STATUS', value: ''
|
|
|
|
environment name: 'EXIT_STATUS', value: ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
parallel {
|
|
|
|
parallel {
|
|
|
@ -507,7 +512,7 @@ pipeline {
|
|
|
|
sh '''#! /bin/bash
|
|
|
|
sh '''#! /bin/bash
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
TEMPDIR=$(mktemp -d)
|
|
|
|
TEMPDIR=$(mktemp -d)
|
|
|
|
if [ "${MULTIARCH}" == "true" ]; then
|
|
|
|
if [ "${MULTIARCH}" == "true" ] && [ "${PACKAGE_CHECK}" == "false" ]; then
|
|
|
|
LOCAL_CONTAINER=${IMAGE}:amd64-${META_TAG}
|
|
|
|
LOCAL_CONTAINER=${IMAGE}:amd64-${META_TAG}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
LOCAL_CONTAINER=${IMAGE}:${META_TAG}
|
|
|
|
LOCAL_CONTAINER=${IMAGE}:${META_TAG}
|
|
|
@ -568,7 +573,7 @@ pipeline {
|
|
|
|
steps {
|
|
|
|
steps {
|
|
|
|
sh '''#! /bin/bash
|
|
|
|
sh '''#! /bin/bash
|
|
|
|
echo "Packages were updated. Cleaning up the image and exiting."
|
|
|
|
echo "Packages were updated. Cleaning up the image and exiting."
|
|
|
|
if [ "${MULTIARCH}" == "true" ]; then
|
|
|
|
if [ "${MULTIARCH}" == "true" ] && [ "${PACKAGE_CHECK}" == "false" ]; then
|
|
|
|
docker rmi ${IMAGE}:amd64-${META_TAG}
|
|
|
|
docker rmi ${IMAGE}:amd64-${META_TAG}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
docker rmi ${IMAGE}:${META_TAG}
|
|
|
|
docker rmi ${IMAGE}:${META_TAG}
|
|
|
@ -592,7 +597,7 @@ pipeline {
|
|
|
|
steps {
|
|
|
|
steps {
|
|
|
|
sh '''#! /bin/bash
|
|
|
|
sh '''#! /bin/bash
|
|
|
|
echo "There are no package updates. Cleaning up the image and exiting."
|
|
|
|
echo "There are no package updates. Cleaning up the image and exiting."
|
|
|
|
if [ "${MULTIARCH}" == "true" ]; then
|
|
|
|
if [ "${MULTIARCH}" == "true" ] && [ "${PACKAGE_CHECK}" == "false" ]; then
|
|
|
|
docker rmi ${IMAGE}:amd64-${META_TAG}
|
|
|
|
docker rmi ${IMAGE}:amd64-${META_TAG}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
docker rmi ${IMAGE}:${META_TAG}
|
|
|
|
docker rmi ${IMAGE}:${META_TAG}
|
|
|
|