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

Reactive Reference Parameter not working with "List Subversion Tags" parameter

    • Icon: Improvement Improvement
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • active-choices-plugin
    • None

      I have a release build job on Jenkins where I extract the major+minor version numbers for the release from the chosen SVN release branch (provided as a "List Subversion Tags" parameter). This extraction is done as a groovy build step (using getTag() of hudson.scm.listtagsparameter.ListSubversionTagsParameterValue and split() of java.lang.String) which injects the major+minor version numbers as variables to build.

      I now tried to provide the major+minor version number as build parameters using Reactive Reference Parameters (with choice type "Input Text Box") that should do this extraction in ther "Script" field of the parameter. Unfortunately I failed. When referring to a "List Subversion Tags" parameter I got an empty string. When returning the class of the referenced "List Subversion Tags" parameter to the text box I see the value "class java.lang.String". However, I would have expected something like "class hudson.scm.listtagsparameter.ListSubversionTagsParameterValue".

      => I am asking for a possibility to retrieve the string value of a "List Subversion Tags" parameter for Reactive Reference Parameters.

          [JENKINS-40501] Reactive Reference Parameter not working with "List Subversion Tags" parameter

            kinow Bruno P. Kinoshita
            cober Christoph Obermair
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: