diff --git a/Jenkinsfile b/Jenkinsfile index c7fc23f375d90b00dab67e8124d9cb964ec9cd6e..98c2a9ba5d54d29f40a4d664f01b1b46396902ec 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,14 @@ pipeline { agent { label 'docker-compose' } + environment { + GIT_TAG = sh(returnStdout: true, script: 'git describe --exact-match || true').trim() + } + stages { stage('Refresh') { steps { slackSend (color: 'good', message: "STARTED: <${env.BUILD_URL}|${env.JOB_NAME} [${env.BUILD_NUMBER}]>") - sh 'git fetch --tags' sh 'make clean' sh 'make refresh' } @@ -26,9 +29,6 @@ pipeline { } } stage('Push') { - environment { - GIT_TAG = sh(returnStdout: true, script: 'git describe --exact-match || true').trim() - } when { not { environment name: 'GIT_TAG', value: '' } }