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

Repeatable radio button in Snippet Generator affects wrong item

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • workflow-cps-plugin
    • Jenkins 2.375.1
      workflow-cps-plugin 3601.v9b_36a_d99e1cc
      warnings-ng-plugin 9.22.0
      Mozilla Firefox 102.6.0esr

      In the Snippet Generator, if a parameter of a step has a repeatable section that contains a radio button, and I click the radio button in the second item, then the click affects first item instead.

      To reproduce:

      1. Open the Jenkins web page of a pipeline project in a browser.
      2. Click the "Pipeline Syntax" link in the left sidebar.
      3. In the "Sample Step" dropdown list, select "recordIssues: Record compiler warnings and static analysis results".
      4. At the bottom of the "recordIssues" section, click the "Advanced..." button.
      5. In the "Thresholds" section, click the "Add Quality Gate" button. This adds an item with fields "Threshold", "Type", and "Result". The "Result" field is a pair of radio buttons: "Unstable" (not selected) and "Failed" (selected).
      6. In the "Thresholds" section, click the "Add Quality Gate" button again. This adds a second similar item.
      7. In the "Result" field of the second item, hover the mouse pointer over the "Unstable" radio button, and click the radio button.

      Expected result:

      • While the mouse pointer is over the "Unstable" radio button of the second item, this radio button should be highlighted.
      • When you click the "Unstable" radio button of the second item, this radio button should be selected, and the "Failed" radio button below it should be deselected. The first item should not be affected.

      Actual result:

      • While the mouse pointer is over the "Unstable" radio button of the second item, the "Unstable" radio button of the first item is highlighted.
      • When you click the "Unstable" radio button of the second item, the "Unstable" radio button of the first item is selected, and the "Failed" radio button of the first item is deselected. The second item is not affected.

            Unassigned Unassigned
            kon Kalle Niemitalo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: