diff --git a/container-build/stream8/Jenkinsfile b/container-build/stream8/Jenkinsfile index 6fe866c..3abc4d3 100644 --- a/container-build/stream8/Jenkinsfile +++ b/container-build/stream8/Jenkinsfile @@ -73,7 +73,10 @@ node('amd64'){ withEnv(['MANIFESTPUSHREPO='+manifestpushrepo, 'TAG='+tag, 'IMAGEPUSHORG='+imagepushorg]){ withCredentials([usernamePassword(credentialsId: 'QUAY_PUSH', passwordVariable: 'QUAY_PUSH_PASS', usernameVariable: 'QUAY_PUSH_USERNAME')]){ sh '''sudo podman login -u=${QUAY_PUSH_USERNAME} -p ${QUAY_PUSH_PASS} quay.io''' - sh '''sudo podman rmi ${MANIFESTPUSHREPO}:${TAG}''' + try{ + sh '''sudo podman rmi ${MANIFESTPUSHREPO}:${TAG}''' + } catch (err) { + } sh '''sudo podman manifest create ${MANIFESTPUSHREPO}:${TAG}''' } }