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

Exclusion Plugin fails on Matrix configuration after upgrade

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • exclusion-plugin
    • None

      I've upgraded Jenkins to version 2.0 and to Excusion Plugin 0.12.
      But now Exclusion plugins blocks my Matrix Multi job configurations.

      The definition inside the job is:

      <org.jvnet.hudson.plugins.exclusion.IdAllocator plugin="Exclusion@0.11">
      <ids>
      <org.jvnet.hudson.plugins.exclusion.DefaultIdType>
      <name>SEMAPHORE_MATRIX_${NODE_NAME}</name>
      </org.jvnet.hudson.plugins.exclusion.DefaultIdType>
      </ids>
      </org.jvnet.hudson.plugins.exclusion.IdAllocator>

      On Plugin version 0.12, it fails to load Matrix configurations due to:

      Apr 24, 2016 2:40:10 PM jenkins.InitReactorRunner$1 onTaskFailed
      SEVERE: Failed Loading job Automation_Matrix_New
      java.lang.NullPointerException
      at org.jvnet.hudson.plugins.exclusion.IdAllocator.getDescriptor(IdAllocator.java:172)
      at hudson.model.Descriptor.toMap(Descriptor.java:986)
      at hudson.util.DescribableList.toMap(DescribableList.java:151)
      at hudson.matrix.MatrixProject.getBuildWrappers(MatrixProject.java:812)
      at hudson.matrix.MatrixConfiguration.getBuildWrappers(MatrixConfiguration.java:358)
      at hudson.model.Project.createTransientActions(Project.java:257)
      at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:755)
      at hudson.matrix.MatrixConfiguration.updateTransientActions(MatrixConfiguration.java:141)
      at hudson.model.AbstractProject.onLoad(AbstractProject.java:339)
      at hudson.model.Project.onLoad(Project.java:98)
      at hudson.matrix.MatrixConfiguration.onLoad(MatrixConfiguration.java:97)
      at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:573)
      at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580)
      at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580)
      at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:617)
      at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:508)
      at hudson.model.Items.load(Items.java:327)
      at jenkins.model.Jenkins$18.run(Jenkins.java:2812)
      at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      at jenkins.model.Jenkins$8.runTask(Jenkins.java:1009)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

      On version 0.11, it fails to load Matrix configurations due to:

      Apr 24, 2016 3:35:30 PM jenkins.InitReactorRunner$1 onTaskFailed
      SEVERE: Failed Loading job Automation_Matrix_New
      java.lang.IndexOutOfBoundsException: Index: 0, Size: 1
      at java.util.ArrayList.rangeCheck(ArrayList.java:653)
      at java.util.ArrayList.remove(ArrayList.java:492)
      at org.jvnet.hudson.plugins.exclusion.IdAllocator.getDescriptor(IdAllocator.java:173)
      at hudson.model.Descriptor.toMap(Descriptor.java:986)
      at hudson.util.DescribableList.toMap(DescribableList.java:151)
      at hudson.matrix.MatrixProject.getBuildWrappers(MatrixProject.java:812)
      at hudson.matrix.MatrixConfiguration.getBuildWrappers(MatrixConfiguration.java:358)
      at hudson.model.Project.createTransientActions(Project.java:257)
      at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:755)
      at hudson.matrix.MatrixConfiguration.updateTransientActions(MatrixConfiguration.java:141)
      at hudson.model.AbstractProject.onLoad(AbstractProject.java:339)
      at hudson.model.Project.onLoad(Project.java:98)
      at hudson.matrix.MatrixConfiguration.onLoad(MatrixConfiguration.java:97)
      at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:573)
      at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580)
      at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580)
      at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:617)
      at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:508)
      at hudson.model.Items.load(Items.java:327)
      at jenkins.model.Jenkins$18.run(Jenkins.java:2812)
      at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      at jenkins.model.Jenkins$8.runTask(Jenkins.java:1009)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

            Unassigned Unassigned
            nmanos Noam Manos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: