From 6940ea972aee191357f56bb4e73a18ccc1e21506 Mon Sep 17 00:00:00 2001 From: Oleksandr Butenko <58562385+sprientera992@users.noreply.github.com> Date: Mon, 12 Jul 2021 21:00:58 +0300 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index ffab33ba6..812d61e92 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -57,5 +57,22 @@ pipeline { } } } + node { + stage('JIRA') { + # Look at IssueInput class for more information. + def testIssue = [fields: [ // id or key must present for project. + project: [id: 'DEV'], + summary: 'New JIRA Created from Jenkins.', + description: 'New JIRA Created from Jenkins.', + customfield_1000: 'customValue', + // id or name must present for issuetype. + issuetype: [id: '3']]] + + response = jiraEditIssue idOrKey: 'DEV-1', issue: testIssue + + echo response.successful.toString() + echo response.data.toString() + } +} } }