自从现在 JIRA apis 中禁用了基本身份验证,我可以从中获取这些信息。
我正在使用这个插件 - https://plugins.jenkins.io/jira-steps/
在@apr_1985 解决方案得到这个之后 -
node {
stage('JIRA') {
withEnv(['JIRA_SITE=Jira']) {
def testIssue = [fields: [ project: [key: 'AUT'],
summary: 'SDsad',
issuetype: [name: 'Bug']]]
response = jiraNewIssue issue: testIssue
echo response.successful.toString()
echo response.data.toString()
}
}
}