我想使用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站点。 有任何想法吗?