From 2131b8abd5bdf96f8a669bf8399b10c7a7bf1194 Mon Sep 17 00:00:00 2001 From: Oleksandr Butenko <58562385+sprientera992@users.noreply.github.com> Date: Tue, 13 Jul 2021 16:35:56 +0300 Subject: [PATCH] DEV-1 --- Jenkinsfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 968e9d9ad..4a0558351 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,13 +4,12 @@ pipeline { registryCredential = 'dockerhub_id' dockerImage = '' RELEASE_NOTES = sh (script: """git log --format="medium" -1 ${GIT_COMMIT}""", returnStdout:true) - commit = sh (script: "git log -1 --pretty=%B", , returnStdout: true).trim() +// commit = sh (script: "git log -1 --pretty=%B", , returnStdout: true).trim() } agent any stages { stage('get hash') { steps { - sh 'echo ${RELEASE_NOTES}' sh 'echo ${GIT_COMMIT_MSG}' script { commit = sh (script: "git log -1 --pretty=%B", , returnStdout: true).trim() @@ -22,7 +21,7 @@ pipeline { steps { script { sh 'echo ${commit}' - jiraAddComment idOrKey: "${commit}", comment: 'build successfull', site: 'butenko992' + jiraAddComment idOrKey: "${commit}", comment: 'build successfull from commit', site: 'butenko992' } } }