Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45293

Pipeline: Jira release version as an input step parameter is null

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • jira-plugin
    • Jenkins Version 2.68
      JIRA Plugin Version 2.3.1
      JIRA Pipeline Steps Plugin Version 1.2.2

      Trying to load a jira release version into a variable using an input step:

      node {
        def answer = input message: 'Approve', parameters: [[$class: 'JiraVersionParameterDefinition', description: 'Select the version', jiraProjectKey: 'PROJECT', jiraReleasePattern: '^1\\.([0-9]+)\\.([0-9]+)$', jiraShowArchived: 'false', jiraShowReleased: 'false', name: 'version']]
        echo answer.version
      }
      

      The input shows a version and I can select it but the result (the variable answer.version) is always null.

            Unassigned Unassigned
            rohaen rohaen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: