|
@@ -40,7 +40,8 @@ pipeline {
|
|
|
}
|
|
|
}
|
|
|
stage("Update") {
|
|
|
- when { expression { service_update != "" } }
|
|
|
+ when { expression { service_update == "" } }
|
|
|
+// when { expression { service_update != "" } }
|
|
|
steps {
|
|
|
script {
|
|
|
for (String item : service_update.split()) {
|
|
@@ -61,7 +62,7 @@ pipeline {
|
|
|
steps{
|
|
|
echo "Setting latest tag"
|
|
|
sh '''docker tag ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER} ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:latest
|
|
|
- docker pull ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:latest'''
|
|
|
+ docker push ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:latest'''
|
|
|
echo "Updating tag info in iru/stack-deploy repository"
|
|
|
withCredentials([sshUserPrivateKey(credentialsId: 'provision', keyFileVariable: 'GIT_SSH_KEY', passphraseVariable: '', usernameVariable: 'GIT_SSH_USERNAME')]) {
|
|
|
sh '''GIT_SSH_COMMAND='ssh -i ${GIT_SSH_KEY} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' \
|