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

Dropdown options appear blank in Declarative Directive Generator

      Dropdown options are not rendered properly in the new Declarative Directive Generator.

      Steps to reproduce:

      1. Go to Manage Jenkins>Global Tool Configuration>Gradle Installations and then add two or more random Gradle versions.

      2. Create a Pipeline job and go to the Pipeline Syntax section at /job/PipelineName/directive-generator/.

      3. Click on Declarative Directive Generator

      4. Select tools: Tools from the dropdown menu.

      5. Add Gradle.

      You'll notice that the Version drop down has multiple items in it, but the display value is empty. If you choose one and click Generate Declarative Directive you'll notice that it will have the name of the Gradle versions you added previously depending on which empty dropdown item you choose.

      The HTML sets a value for the option element, but doesn't seem to also include the name string in the <option>NAMESHOULDBEHEREBUTISNT</option> element.

          [JENKINS-51872] Dropdown options appear blank in Declarative Directive Generator

          Ronnie Zhou created issue -
          Andrew Bayer made changes -
          Component/s New: pipeline-model-definition-plugin [ 21706 ]
          Component/s Original: pipeline [ 21692 ]
          Andrew Bayer made changes -
          Assignee New: Andrew Bayer [ abayer ]
          Andrew Bayer made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Andrew Bayer made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Andrew Bayer made changes -
          Remote Link New: This issue links to "PR #281 (Web Link)" [ 21305 ]
          Andrew Bayer made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]
          Josh Soref made changes -
          Link New: This issue relates to JENKINS-56832 [ JENKINS-56832 ]
          Liam Newman made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            abayer Andrew Bayer
            rzhou Ronnie Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: