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

No value is passed in case of Multiple Formatted HTML Active Choice Reactive Reference parameter

XMLWordPrintable

      There is a pipeline job with multiple Active choices parameter and dependent Active choice Reactive Reference Parameters. Consider following scenario:

      1. Active Choice: Tomcat. Active choice Reactive Reference Parameters: Find files from repository related to Tomcat and html to return the choices for user to select the version
      2. Active Choice: SVN client. Active choice Reactive Reference Parameters: Find files from repository related to SVN client and html to return the choices for user to select the version

      To return the value, I am using:

      Active choice Reactive Reference Parameter 1:

      html=html+"""
      <input type="radio" json="${it}" name="value" value="${it}">${it as String}
      <br>
      """

      Active choice Reactive Reference Parameter 2:

      html2=html2+"""
      <input type="radio" json="${it}" name="value" value="${it}">${it as String}
      <br>
      """

      I am using different htmls to return the list but the input name is "value" for both  Reactive Reference Parameters. In this case, the radio button toggles between Choice 1 and choice 2 while selection.

      If the input name is changed, I am able to select any option from both Choice 1 and Choice 2 but the value is not passed to the pipeline.

      How is it possible to pass the value to the pipeline.

      PFA config.xml

        1. config.xml
          17 kB
          Pooja Gangurde
        2. image-2019-03-09-09-58-36-226.png
          20 kB
          Ioannis Moutsatsos

            kinow Bruno P. Kinoshita
            poojagangurde Pooja Gangurde
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: