diff --git a/Jenkinsfile b/Jenkinsfile index b0bffce9b..26e559450 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,9 @@ pipeline { stage('Jira2') { steps { jiraAddComment idOrKey: 'DEV-1', comment: 'hello', site: 'butenko992' - env.revision = sh(script: "git log --pretty=format:\"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset\" \$prevcommit...\$GIT_COMMIT", , returnStdout: true).trim() + + script {env.revision = sh(script: "git log --pretty=format:\"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset\" \$prevcommit...\$GIT_COMMIT", , returnStdout: true).trim() + } } } stage('get hash') {