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

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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Jenkins 1.430
      Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
      Linux

      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

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

          flaviocdc added a comment -

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

          flaviocdc added a comment -

          Bump?

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

          flaviocdc added a comment - Bump? I've been using this fix for a month w/o issue

          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

          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

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

          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 .

          dogfood added a comment -

          dogfood added a comment - Integrated in jenkins_main_trunk #1243

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

              Created:
              Updated:
              Resolved: