From 9d4a50ec9a4ba039a9be605e263e133f14d99c78 Mon Sep 17 00:00:00 2001 From: Oleksandr Butenko <58562385+sprientera992@users.noreply.github.com> Date: Mon, 12 Jul 2021 18:52:27 +0300 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f2187b57d..787852c6c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -57,5 +57,19 @@ pipeline { } } } - } + stage ('ComentToJira') + when { + branch 'main' + } + steps { + echo 'Deploying to Production from main...' + } + post { + always { + //jiraSendDeploymentInfo site: '.atlassian.net', environmentId: 'us-prod-1', environmentName: 'us-prod-1', environmentType: 'production' + jiraAddComment comment: 'build ', idOrKey: 'Task1', site: 'https://butenko992.atlassian.net' + } + } + } + } }