Reputation: 143
I try to load a jira release version into a variable using an input step.
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
}
The input shows me a version and I can select it but the result (the variable version) is always null. Is this currently not supported or how is it done?
Upvotes: 1
Views: 1940
Reputation: 36
This seems to be a bug in the JIRA Plugin for Jenkins.
I've created an Issue for that: JENKINS-45293
As a workaround you can use the JIRA Steps Plugin (step jiraGetProjectVersions
) to query the versions and then put them into a choice parameter. Be aware of Bug JENKINS-40358 when filling in the choices using the Snippet Generator.
Upvotes: 2