diff --git a/Jenkinsfile b/Jenkinsfile index 481ff0f..eb1a930 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,7 +28,13 @@ pipeline { } if (status_s != 0) { - sh 'docker compose build secondary --push' + sh 'docker compose build secondary1 --push' + } else { + echo "Secondary Image version already exists, no need to rebuild." + } + + if (status_s != 0) { + sh 'docker compose build secondary2 --push' } else { echo "Secondary Image version already exists, no need to rebuild." }