From dca3f21cc634ae4505d6ad4f67ac0dca172259f5 Mon Sep 17 00:00:00 2001 From: Oleksandr Butenko <58562385+sprientera992@users.noreply.github.com> Date: Tue, 13 Jul 2021 16:03:25 +0300 Subject: [PATCH] DEV-1 --- Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f6ba1fee0..ee2ec15d8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,7 +15,11 @@ pipeline { } stage('Jira2') { steps { - jiraAddComment idOrKey: "${TaskID}", comment: 'build successfull', site: 'butenko992' + script { + TaskID = sh 'git log -1 --pretty=%' + sh 'echo ${TaskID}' + jiraAddComment idOrKey: "${TaskID}", comment: 'build successfull', site: 'butenko992' + } } } stage('Build') {