使用 Jenkins Jira 步骤插件转换票证状态的问题
使用插件 JIRA 时,使用 jenkins 管道的转换问题状态时出现以下错误
:Site - jira - idOrKey 的转换问题:TEST-12345 错误代码:500 错误消息:{“errorMessages”:[“内部服务器错误”],“errors”:{}}
下面是我在管道中的代码片段
node {
stage('JIRA') {
withEnv(['JIRA_SITE=jira']) {
def issue = jiraGetIssue idOrKey: 'TEST-12345'
def transitionInput =
[
transition: [
id: '1234'
]
]
def issue_status = issue.data.fields.status.name.toString()
echo issue_status
if ( issue_status == "Build Ready") {
jiraTransitionIssue idOrKey: 'TEST-12345', input: transitionInput, site: 'jira'
} else { echo "JIRA ticket status " }
}
}
}
I am getting below error when using transition issue status from jenkins pipeline when using plugin
JIRA: Site - jira - Transition issue with idOrKey: TEST-12345
Error Code: 500
Error Message: {"errorMessages":["Internal server error"],"errors":{}}
Below is my code snippet in pipeline
node {
stage('JIRA') {
withEnv(['JIRA_SITE=jira']) {
def issue = jiraGetIssue idOrKey: 'TEST-12345'
def transitionInput =
[
transition: [
id: '1234'
]
]
def issue_status = issue.data.fields.status.name.toString()
echo issue_status
if ( issue_status == "Build Ready") {
jiraTransitionIssue idOrKey: 'TEST-12345', input: transitionInput, site: 'jira'
} else { echo "JIRA ticket status " }
}
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论