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

Matrix build on multiple hosts cant be imported by 1.373

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • matrix-project-plugin
    • None
    • Solaris 10, sparc. Hudson home on nfs server mounted with v3. JVM 1.5.0_06-b05
      Windows
      Linux ubuntu

      After upgrade to 1.373 our matrix build stop working. Even creating of a new job did not work. The job executes a shell script on multiple nodes in parallel. Configuration changes are simply lost. A NPE option was thrown :

      Caused by: java.lang.NullPointerException
      at java.util.ArrayList.<init>(ArrayList.java:133)
      at hudson.matrix.Axis.<init>(Axis.java:74)
      at hudson.matrix.LabelAxis.<init>(LabelAxis.java:40)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:409)
      at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:355)
      at hudson.model.Descriptor.newInstance(Descriptor.java:466)
      at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:743)
      at hudson.util.DescribableList.rebuildHetero(DescribableList.java:172)
      at hudson.matrix.MatrixProject.submit(MatrixProject.java:561)
      at hudson.model.Job.doConfigSubmit(Job.java:1086)
      at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:571)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:259)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:65)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)

      a roll back to 1.372 fixed the issue.

        1. UIerror.txt
          5 kB
        2. stdouterror.txt
          10 kB
        3. doubleSlaveConfig.png
          doubleSlaveConfig.png
          20 kB

          [JENKINS-7281] Matrix build on multiple hosts cant be imported by 1.373

          kofemann created issue -

          anilarora added a comment -

          It appears that the treeview for the Label/Nodes does not submit any data. This happens for the build on multiple nodes tree view as well, meaning that none of my selections will be passed to the server.

          anilarora added a comment - It appears that the treeview for the Label/Nodes does not submit any data. This happens for the build on multiple nodes tree view as well, meaning that none of my selections will be passed to the server.

          emmulator added a comment -

          I just upgraded from 1.36x to 1.374 and my matrix config pages have two sections to specify nodes/slaves: a new detatchable/deletable section titled "Slaves", and the old "Build on multiple nodes" section. Is this the same issue, or am I just not understanding the new UI? I'll attach a screenshot.

          emmulator added a comment - I just upgraded from 1.36x to 1.374 and my matrix config pages have two sections to specify nodes/slaves: a new detatchable/deletable section titled "Slaves", and the old "Build on multiple nodes" section. Is this the same issue, or am I just not understanding the new UI? I'll attach a screenshot.

          emmulator added a comment -

          Screenshot of double slave/node config for matrix build after upgrade to 1.374.

          emmulator added a comment - Screenshot of double slave/node config for matrix build after upgrade to 1.374.
          emmulator made changes -
          Attachment New: doubleSlaveConfig.png [ 19704 ]

          emmulator added a comment -

          If I try to manually kick off the job as configured in the screenshot, I get the stacktrace captured in UIerror.txt.

          If I uncheck the old "Build on multiple nodes" and select the slaves I want in the new UI element, then try to kick off the build manually, I get no feedback in the UI, but the contents of stdouterror.txt in the hudson log.

          If I delete the new 'Slave' section and try to configure with the old "Build on multiple nodes" section, I see the behavior described in this ticket, where my selections are never saved. And if I try to kick off the build I get no feedback in the UI and a similar stacktrace in the log

          emmulator added a comment - If I try to manually kick off the job as configured in the screenshot, I get the stacktrace captured in UIerror.txt. If I uncheck the old "Build on multiple nodes" and select the slaves I want in the new UI element, then try to kick off the build manually, I get no feedback in the UI, but the contents of stdouterror.txt in the hudson log. If I delete the new 'Slave' section and try to configure with the old "Build on multiple nodes" section, I see the behavior described in this ticket, where my selections are never saved. And if I try to kick off the build I get no feedback in the UI and a similar stacktrace in the log
          emmulator made changes -
          Attachment New: UIerror.txt [ 19705 ]
          Attachment New: stdouterror.txt [ 19706 ]

          emmulator added a comment -

          I tried reverting to 1.372, but I still got the "java.lang.InstantiationError: hudson.model.Label". Reverting to 1.371 allowed me to start running matrix builds again.

          emmulator added a comment - I tried reverting to 1.372, but I still got the "java.lang.InstantiationError: hudson.model.Label". Reverting to 1.371 allowed me to start running matrix builds again.

          emmulator added a comment -

          Are this and issue JENKINS-7314 the same?

          emmulator added a comment - Are this and issue JENKINS-7314 the same?

          jrvilda added a comment -

          Also happens in windows.
          Having already set up tasks with nodes, to modify any configuration parameter nodes loses or gives error 500, forced to modify the config.xml by hand.

          jrvilda added a comment - Also happens in windows. Having already set up tasks with nodes, to modify any configuration parameter nodes loses or gives error 500, forced to modify the config.xml by hand.
          jrvilda made changes -
          Environment Original: Solaris 10, sparc. Hudson home on nfs server mounted with v3. JVM 1.5.0_06-b05 New: Solaris 10, sparc. Hudson home on nfs server mounted with v3. JVM 1.5.0_06-b05
          Windows
          Linux ubuntu

            kohsuke Kohsuke Kawaguchi
            kofemann kofemann
            Votes:
            19 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: