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

Jira release version parameter: not all versions shown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • jira-plugin
    • None
    • Jenkins ver. 1.638
      Jira plugin ver. 2.3

      The plugin doesn't always load and show all versions from JIRA which meet the filter criteria.

      When for a given semver major.minor version (patch version may be different), there are versions which include a prerelease component, then only the version which if furthest down the list is shown (not necessarily lowest version number - it's the manual order that counts).

      Steps to reproduce: create e.g. the following versions (you can pick any other Major.minor.patch version), and order them this way:

      • 3.0.0
      • 3.0.0-a
      • 3.0.1-rc1

      Result: only 3.0.1-rc1 will be shown. Change the order and notice how only the one furthest down the list is shown. There may be any number of other versions in between these.

      Edit: doesn't need to be a pre-release. Actually, just any string mentioned after major.minor will cause this behavior. So you can also reproduce it as follows:

      • 3.0.a
      • 3.0.b
      • 3.1.c

      Result: Only 3.1.c and 3.0.b will be shown, not 3.0.a.

      The JIRA API does return all versions; so it must be the plugin. I don't have a Java environment set-up so unfortunately I can't debug this further or send a PR.

      Work-around: don't use strings in versions.

            Unassigned Unassigned
            vsel Vincent Sels
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: