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

Repeated ids, expandTextArea() and multiple "Invoke Ant" build steps

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Jenkins 1.430
      Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
      Linux
    • Similar Issues:

      Description

      I have a project that invokes more than one Ant build step during the execution of a job.
      I happened to need to insert multiple properties in the second build step and in order to do that I had to change to the textarea mode, that's when I noticed that the javascript wasn't working properly due to the fact that some form elements are being created with repeated ids.

      Next thing I tried was to reproduced in a clean Jenkins environment, so I just downloaded the WAR and unzipped a clean version of Tomcat and was able to reproduce the bug by doing this:

      • New job -> Configure
      • Add build step #1
      • Add build step #2
      • Click in the expand button of build step #2 "Targets" field
      • Notice that the "Targets" field of #1 will be changed to a textarea instead of #2

        Attachments

          Issue Links

            Activity

            Hide
            flaviocdc flaviocdc added a comment -
            Show
            flaviocdc flaviocdc added a comment - Submitted a pull request: https://github.com/jenkinsci/jenkins/pull/242
            Hide
            flaviocdc flaviocdc added a comment -

            Bump?

            I've been using this fix for a month w/o issue

            Show
            flaviocdc flaviocdc added a comment - Bump? I've been using this fix for a month w/o issue
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Seiji Sogabe
            Path:
            war/src/main/webapp/scripts/hudson-behavior.js
            http://jenkins-ci.org/commit/jenkins/4dd48c5d3906a62c1b1056ce62e4fb39eb6dd0ef
            Log:
            Merge pull request #242 from flaviocdc/master

            JENKINS-10989 Repeated ids, expandTextArea() and multiple "Invoke Ant" build steps

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Seiji Sogabe Path: war/src/main/webapp/scripts/hudson-behavior.js http://jenkins-ci.org/commit/jenkins/4dd48c5d3906a62c1b1056ce62e4fb39eb6dd0ef Log: Merge pull request #242 from flaviocdc/master JENKINS-10989 Repeated ids, expandTextArea() and multiple "Invoke Ant" build steps
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Seiji Sogabe
            Path:
            changelog.html
            http://jenkins-ci.org/commit/jenkins/15c40425af801560cfa6fbaccbd22289c29d6bd1
            Log:
            changelog for JENKINS-10989.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Seiji Sogabe Path: changelog.html http://jenkins-ci.org/commit/jenkins/15c40425af801560cfa6fbaccbd22289c29d6bd1 Log: changelog for JENKINS-10989 .
            Hide
            dogfood dogfood added a comment -
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #1243

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              flaviocdc flaviocdc
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: