Vadim Surkov преди 7 години
родител
ревизия
ba79411278
променени са 1 файла, в които са добавени 3 реда и са изтрити 5 реда
  1. 3 5
      Jenkinsfile

+ 3 - 5
Jenkinsfile

@@ -62,18 +62,16 @@ pipeline {
         echo "Setting latest tag"
         sh '''docker tag ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER} ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:latest
               docker push ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:latest'''
-        echo "Updating tag info in iru/stack-deploy repository"
+        echo "Updating tag info in ${SWARM_GIT_NAME} 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' \
                   git clone ${SWARM_GIT_URL}
-                ls
                 cd ${SWARM_GIT_NAME}
-                ls
                 echo -n ${BUILD_NUMBER} > tags/${DOCKER_IMAGE}.version
                 git add -A
                 git config --global user.email "${JENKINS_MAIL}"
                 git config --global user.name "Jenkins"
-                git commit -am 'Version update'
+                git commit -m 'Version update'
                 GIT_SSH_COMMAND='ssh -i ${GIT_SSH_KEY} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' \
                   git push origin master
                 ls'''
@@ -88,7 +86,7 @@ pipeline {
     }
     failure {
       mail charset: 'UTF-8',
-           subject: "Jenkins build error",
+           subject: "Jenkins build ERROR",
            mimeType: 'text/html',
            to: "${mailto}",
            body: "<b>ATTENTION!!!</b> <b><br> Jenkins job failed.\n\n <b><br>Project Name:</b> ${env.JOB_NAME} <b><br>\nBuild Number:</b> ${env.BUILD_NUMBER} <b><br>\nURL Build:</b> ${RUN_DISPLAY_URL}"