From 621f732c497dd5dff948c8945eeacb6c045387f2 Mon Sep 17 00:00:00 2001 From: Oleksandr Butenko <58562385+sprientera992@users.noreply.github.com> Date: Tue, 13 Jul 2021 16:23:34 +0300 Subject: [PATCH] DEV-1 --- Jenkinsfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 23ba4d4f6..58859cec6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,15 +12,14 @@ pipeline { steps { sh 'echo ${RELEASE_NOTES}' sh 'echo ${GIT_COMMIT_MSG}' - def commit = sh(returnStdout: true, script: 'git log -1 --pretty=%B | cat') + commit = sh(returnStdout: true, script: 'git log -1 --pretty=%B | cat') sh 'echo ${commit}' } } stage('Jira2') { steps { script { - commit = sh 'git log -1 --pretty=%' - sh 'echo ${TaskID}' + sh 'echo ${commit}' jiraAddComment idOrKey: "${commit}", comment: 'build successfull', site: 'butenko992' } }