From 84cdf2b8aa2810a86657544ddb2b69fc7afda783 Mon Sep 17 00:00:00 2001 From: Oleksandr Butenko <58562385+sprientera992@users.noreply.github.com> Date: Tue, 13 Jul 2021 17:03:24 +0300 Subject: [PATCH] DEV-2 --- Jenkinsfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 523f35e6b..269a24e01 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,9 +3,9 @@ pipeline { registry = "sprientera/pet" 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() - } agent any stages { // stage('Jira2') { @@ -68,7 +68,7 @@ pipeline { } stage('get hash') { steps { - sh 'echo ${GIT_COMMIT_MSG}' + // sh 'echo ${GIT_COMMIT_MSG}' script { commit = sh (script: "git log -1 --pretty=%B", , returnStdout: true).trim() sh 'echo ${commit}' @@ -76,11 +76,10 @@ pipeline { } } } - post { - success { - echo 'I succeeded!' - jiraAddComment idOrKey: "${commit}", comment: 'build successfull from commit', site: 'butenko992' - } + post { + success { + echo 'I succeeded!' + jiraAddComment idOrKey: "${commit}", comment: 'build successfull from commit', site: 'butenko992' } } }