From 058d81915c55e78b6ec1f6b6a59e93f99815198c Mon Sep 17 00:00:00 2001 From: Oleksandr Butenko <58562385+sprientera992@users.noreply.github.com> Date: Tue, 13 Jul 2021 16:20:31 +0300 Subject: [PATCH] DEV-1 --- Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5402ce51e..d6791c448 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,22 +4,23 @@ pipeline { registryCredential = 'dockerhub_id' dockerImage = '' RELEASE_NOTES = sh (script: """git log --format="medium" -1 ${GIT_COMMIT}""", returnStdout:true) - TaskID = '' + } agent any stages { stage('get hash') { steps { sh 'echo ${RELEASE_NOTES}' - sh 'echo ${GIT_COMMIT_MSG}' + sh 'echo ${GIT_COMMIT_MSG}' + sh 'echo 'git log -1 --pretty=%'' } } stage('Jira2') { steps { script { - TaskID = sh 'git log -1 --pretty=%' + commit = sh 'git log -1 --pretty=%' sh 'echo ${TaskID}' - jiraAddComment idOrKey: "${TaskID}", comment: 'build successfull', site: 'butenko992' + jiraAddComment idOrKey: "${commit}", comment: 'build successfull', site: 'butenko992' } } }