From 1f8cc6b9da62d53be0324060f3501126a42ec662 Mon Sep 17 00:00:00 2001 From: Oleksandr Butenko <58562385+sprientera992@users.noreply.github.com> Date: Tue, 13 Jul 2021 16:34:19 +0300 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 95f773d42..968e9d9ad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,8 +12,10 @@ pipeline { steps { sh 'echo ${RELEASE_NOTES}' sh 'echo ${GIT_COMMIT_MSG}' - commit = sh (script: "git log -1 --pretty=%B", , returnStdout: true).trim() - sh 'echo ${commit}' + script { + commit = sh (script: "git log -1 --pretty=%B", , returnStdout: true).trim() + sh 'echo ${commit}' + } } } stage('Jira2') {