Jira 发布版本作为输入步骤参数
Jira release version as an input step parameter
我尝试使用输入步骤将 jira 发布版本加载到变量中。
node {
def version = input message: 'Approve', parameters: [[$class: 'JiraVersionParameterDefinition', description: 'Select the version', jiraProjectKey: 'APP', jiraReleasePattern: '^1\.([0-9]+)\.([0-9]+)$', jiraShowArchived: 'false', jiraShowReleased: 'false', name: 'version']]
echo version
}
输入显示了一个版本,我可以 select 但结果(变量版本)始终为空。目前是否不支持或如何完成?
这似乎是 Jenkins 的 JIRA 插件中的错误。
我为此创建了一个问题:JENKINS-45293
作为解决方法,您可以在使用代码段生成器填写选项时使用 JIRA Steps Plugin (step jiraGetProjectVersions
) to query the versions and then put them into a choice parameter. Be aware of Bug JENKINS-40358。
我尝试使用输入步骤将 jira 发布版本加载到变量中。
node {
def version = input message: 'Approve', parameters: [[$class: 'JiraVersionParameterDefinition', description: 'Select the version', jiraProjectKey: 'APP', jiraReleasePattern: '^1\.([0-9]+)\.([0-9]+)$', jiraShowArchived: 'false', jiraShowReleased: 'false', name: 'version']]
echo version
}
输入显示了一个版本,我可以 select 但结果(变量版本)始终为空。目前是否不支持或如何完成?
这似乎是 Jenkins 的 JIRA 插件中的错误。
我为此创建了一个问题:JENKINS-45293
作为解决方法,您可以在使用代码段生成器填写选项时使用 JIRA Steps Plugin (step jiraGetProjectVersions
) to query the versions and then put them into a choice parameter. Be aware of Bug JENKINS-40358。