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

Labels/Node tree is not visible in multiconfiguration project setup

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • matrix-project-plugin
    • None
    • Windows 7 Ultimate, Google Chrome 11.0.696.65 (Jenkins 1.411 or later - possibly earlier, definitely didn't show up in 1.400)

      When I try and setup a multi-configuration project using the Slaves as the axis, the Labels/Nodes tree area has nothing in it for me to select a label or
      node for the axis. The javascript code is there when I view source, but nothing shows up to allow me to set the axis for the slaves.

      The code inside the tree element is as follows:

      <script>
      hudsonRules["DIV.labelAxis-tree"] = function(e) {
      var tree = new YAHOO.widget.TreeView(e);

      var labels = new YAHOO.widget.TextNode("Labels", tree.getRoot(), false);
      var machines = new YAHOO.widget.TextNode("Individual nodes", tree.getRoot(), false);

      var values = (e.getAttribute("values") || "").split("/");
      function has(v)

      { return values.include(v) ? 'checked="checked" ' : ""; }

      new YAHOO.widget.TextNode("<input type=\'checkbox\' name=\'values\' json=\'master\' "has("master")"/><label class=\'attach-previous\'>master (the master Jenkins node)</label>", machines, false);

      new YAHOO.widget.TextNode("<input type=\'checkbox\' name=\'values\' json=\'slave\' "has("slave")"/><label class=\'attach-previous\'>slave (group of sv-build-03,sv-build-02)</label>", labels, false);

      new YAHOO.widget.TextNode("<input type=\'checkbox\' name=\'values\' json=\'sv-build-02\' "has("sv-build-02")"/><label class=\'attach-previous\'>sv-build-02 (Slave Build Server #1)</label>", machines, false);

      new YAHOO.widget.TextNode("<input type=\'checkbox\' name=\'values\' json=\'sv-build-03\' "has("sv-build-03")"/><label class=\'attach-previous\'>sv-build-03 (Slave Build Server #2)</label>", machines, false);

      tree.draw();

      tree.expandAll();
      tree.collapseAll();
      };
      </script>

      No javascript errors are shown on the javascript console.

          [JENKINS-9689] Labels/Node tree is not visible in multiconfiguration project setup

          Alex Earl created issue -

          WH added a comment -

          I have the same problem with Jenkins 1.411 and Firefox 4.01. The Firefox error console says:

          Error: Components is not defined
          Source file: chrome://qls/content/qls.js
          Line: 74

          Does Jenkins recognize Firefox as Chrome?

          WH added a comment - I have the same problem with Jenkins 1.411 and Firefox 4.01. The Firefox error console says: Error: Components is not defined Source file: chrome://qls/content/qls.js Line: 74 Does Jenkins recognize Firefox as Chrome?

          Alex Earl added a comment -

          chrome in the case of the URL you are pasting means the browsers "chrome" or set of UI elements. Most browsers use internal URL's starting with chrome:// to setup windows and implement functionality. http://www.pcmag.com/encyclopedia_term/0,2542,t=browser+chrome&i=38972,00.asp

          Alex Earl added a comment - chrome in the case of the URL you are pasting means the browsers "chrome" or set of UI elements. Most browsers use internal URL's starting with chrome:// to setup windows and implement functionality. http://www.pcmag.com/encyclopedia_term/0,2542,t=browser+chrome&i=38972,00.asp

          Jim McCaskey added a comment -

          Repost from the mailing list:

          I am trying to set up a new Jeninks server and running into a problem. I have configured 5 (2 windows, 2 linux, 1 mac) slaves with the system. I have created a "multi-configuration project". In that project I then try to:

          1) Drop down the "Add Axis" drop down
          2) Choose Slaves
          3) Notice that the Node/Label box is empty

          The system I am noticing this on is installed via yum on Red Hat Enterprise Linux Server release 5.6. I am using Jenkins version 1.412 with Java 1.6.0_25 (64-bit). On the theory it could be a browser problem I tried IE9, FireFox4, and Chrome 10.0.648.205.

          I was able to get around this by:

          1) Shutting down Jenkins
          2) Modifying the config.xml for the job directly
          3) Restarting Jenkins

          Now I can see all of the slaves and am able to modify them at will. I can reproduce the problem by creating a new "multi-configuration project". I have two other Jenkins servers running Jenkins version 1.400. Both of them have no problem with the "multi-configuration project".

          I'm not too certain what's going on here, but thought I should mention it. Needless to say, the work around would really only work on a lightly used Jenkins server.

          Jim McCaskey added a comment - Repost from the mailing list: I am trying to set up a new Jeninks server and running into a problem. I have configured 5 (2 windows, 2 linux, 1 mac) slaves with the system. I have created a "multi-configuration project". In that project I then try to: 1) Drop down the "Add Axis" drop down 2) Choose Slaves 3) Notice that the Node/Label box is empty The system I am noticing this on is installed via yum on Red Hat Enterprise Linux Server release 5.6. I am using Jenkins version 1.412 with Java 1.6.0_25 (64-bit). On the theory it could be a browser problem I tried IE9, FireFox4, and Chrome 10.0.648.205. I was able to get around this by: 1) Shutting down Jenkins 2) Modifying the config.xml for the job directly 3) Restarting Jenkins Now I can see all of the slaves and am able to modify them at will. I can reproduce the problem by creating a new "multi-configuration project". I have two other Jenkins servers running Jenkins version 1.400. Both of them have no problem with the "multi-configuration project". I'm not too certain what's going on here, but thought I should mention it. Needless to say, the work around would really only work on a lightly used Jenkins server.

          davidstrauss added a comment -

          This is affecting me, too, on 1.413. One important note, though, is that old jobs with multiconfiguration properly show the widget.

          davidstrauss added a comment - This is affecting me, too, on 1.413. One important note, though, is that old jobs with multiconfiguration properly show the widget.

          Andrew Bayer added a comment -

          Andrew Bayer added a comment - Wondering if this may be a side effect of https://github.com/jenkinsci/jenkins/commit/8d29f4772bfdba66e72af3ae245b306d6b0bebca?
          Andrew Bayer made changes -
          Assignee New: Kohsuke Kawaguchi [ kohsuke ]
          Andrew Bayer made changes -
          Environment Original: Windows 7 Ultimate, Google Chrome 11.0.696.65 New: Windows 7 Ultimate, Google Chrome 11.0.696.65 (Jenkins 1.411 or later - possibly earlier, definitely didn't show up in 1.400)
          Priority Original: Major [ 3 ] New: Critical [ 2 ]

          This also blocks our jenkins 1.413 installation!

          Conny Kreyßel added a comment - This also blocks our jenkins 1.413 installation!

          Thomas Fields added a comment -

          I've just been bitten by this issue too. Is there a fix in the works?

          Thomas Fields added a comment - I've just been bitten by this issue too. Is there a fix in the works?

            kohsuke Kohsuke Kawaguchi
            slide_o_mix Alex Earl
            Votes:
            12 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: