如何使用Jenkins Jira插件创建JIRA新发行版

时间:2019-07-01 08:37:16

标签: jenkins jira

我想使用Jenkins Jira Steps插件创建一个新的Jira Issue。

这是我的演示管道:

node {
  stage('JIRA') {
    def testIssue = [fields: [ // id or key must present for project.
                               project: [key: 'DEVTOOLS'],
                               summary: 'New JIRA Created from Jenkins.',
                               description: 'New JIRA Created from Jenkins.',
                               // id or name must present for issueType.
                               issuetype: [id: '8']]]


    response = jiraNewIssue issue: testIssue, site: 'JIRA PROD'

    echo response.successful.toString()
    echo response.data.toString()
  }
}

运行管道后,我得到:

[Pipeline] jiraNewIssue (hide)
JIRA: Site - JIRA PROD - Creating new issue: IssueInput(update=null, fields={project={key=DEVTOOLS}, summary=New JIRA Created from Jenkins., description=New JIRA Created from Jenkins., issuetype={id=8}})
Error Code: -1
Error Message: Read timed out
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Notified JIRA that a build has completed.
ERROR: Read timed out
Finished: FAILURE

已在jenkins config中成功配置了Jira站点。 有任何想法吗?

0 个答案:

没有答案