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

All matrix jobs disappeared after upgrade to 1.562

      Hi,

      I upgraded a jenkins installation to 1.562 today, which made all matrix jobs disappear from the front page, i.e. they can no longer be viewed or run.

      Here's a snippet from the logs:

      May 04, 2014 6:19:43 PM SEVERE jenkins.InitReactorRunner$1 onTaskFailed

      Failed Loading job foo
      groovy.lang.MissingPropertyException: No such property: hudson for class: Script1
      at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
      at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
      at Script1.run(Script1.groovy:1)
      at hudson.matrix.FilterScript.evaluate(FilterScript.java:36)
      at hudson.matrix.FilterScript.apply(FilterScript.java:73)
      at hudson.matrix.Combination.evalGroovyExpression(Combination.java:101)
      at hudson.matrix.Combination.evalGroovyExpression(Combination.java:91)
      at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:637)
      at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:504)
      at hudson.model.Items.load(Items.java:273)
      at jenkins.model.Jenkins$18.run(Jenkins.java:2594)
      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$7.runTask(Jenkins.java:905)
      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:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:744)

      This is with jenkins 1.562 (from the Debian package from jenkins-ci.org). The new Matrix Project Plugin (version 1.0) is installed and enabled.

      Please let me know if there is a temporary workaround to make the jobs accessible again and/or what the proper fix for this is.

      The job files are still there (/var/lib/jenkins/jobs/foo/config.xml etc).

          [JENKINS-22863] All matrix jobs disappeared after upgrade to 1.562

          Oleg Nenashev added a comment -

          @Yaniv
          Matrix Project Plugin has been decoupled from the Jenkins core.
          You should update the plugin instead of the core

          Oleg Nenashev added a comment - @Yaniv Matrix Project Plugin has been decoupled from the Jenkins core. You should update the plugin instead of the core

          Yaniv Kaul added a comment -

          I have updated both the plugin (used v1.2) and core.
          I've updated all relevant plugins after upgrading the core, exactly because of this change.
          Still the issue appeared.

          Yaniv Kaul added a comment - I have updated both the plugin (used v1.2) and core. I've updated all relevant plugins after upgrading the core, exactly because of this change. Still the issue appeared.

          Jesse Glick added a comment -

          @ykaul and did you double-check that you are really running 1.2 in /pluginManager/installed? And that you are really seeing the same problem as is reported here and not something else? Best to install Support Core and attach a diagnostic bundle so others can see what you are really running and the original error in the log.

          Jesse Glick added a comment - @ykaul and did you double-check that you are really running 1.2 in /pluginManager/installed ? And that you are really seeing the same problem as is reported here and not something else? Best to install Support Core and attach a diagnostic bundle so others can see what you are really running and the original error in the log.

          Yaniv Kaul added a comment - - edited

          I've installed from fresh Jenkins 1.569, from RPM. I have the matrix plugin 1.2 installed as well as https://wiki.jenkins-ci.org/display/JENKINS/matrix+combinations+plugin v1.06.
          When creating the simples matrix job, the exception occurs.
          Here's my job:

          • multi-configuration job
          • parameterized:
          • bool parameter (dummy, just to have a parameter)
          • matrix combinations filter: name: FILTER
          • Configuration Matrix:
          • User Defined Axis: name: ax1 values: axA axB
          • User Defined Axis: name: ax2 values: axC axD

          That's it. No steps, no nodes, no git, nothing.
          When I go to execute it:
          avax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.569.jar!/hudson/model/ParametersDefinitionProperty/index.jelly:50:78: <st:include> org.apache.commons.jelly.JellyTagException: jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.569.jar!/lib/form/entry.jelly:73:23: <d:invokeBody> No such property: p for class: hudson.plugins.matrix_configuration_parameter.matrixcombinationparameterDefinition.index
          at org.kohsuke.stapler.jelly.JellyRequestDispatcher.forward(JellyRequestDispatcher.java:60)
          at jenkins.model.ParameterizedJobMixIn.doBuild(ParameterizedJobMixIn.java:163)
          at hudson.model.AbstractProject.doBuild(AbstractProject.java:1726)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)

          See attached support.zip

          Yaniv Kaul added a comment - - edited I've installed from fresh Jenkins 1.569, from RPM. I have the matrix plugin 1.2 installed as well as https://wiki.jenkins-ci.org/display/JENKINS/matrix+combinations+plugin v1.06. When creating the simples matrix job, the exception occurs. Here's my job: multi-configuration job parameterized: bool parameter (dummy, just to have a parameter) matrix combinations filter: name: FILTER Configuration Matrix: User Defined Axis: name: ax1 values: axA axB User Defined Axis: name: ax2 values: axC axD That's it. No steps, no nodes, no git, nothing. When I go to execute it: avax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar: file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.569.jar!/hudson/model/ParametersDefinitionProperty/index.jelly:50:78: <st:include> org.apache.commons.jelly.JellyTagException: jar: file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.569.jar!/lib/form/entry.jelly:73:23: <d:invokeBody> No such property: p for class: hudson.plugins.matrix_configuration_parameter.matrixcombinationparameterDefinition.index at org.kohsuke.stapler.jelly.JellyRequestDispatcher.forward(JellyRequestDispatcher.java:60) at jenkins.model.ParameterizedJobMixIn.doBuild(ParameterizedJobMixIn.java:163) at hudson.model.AbstractProject.doBuild(AbstractProject.java:1726) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) See attached support.zip

          Jesse Glick added a comment -

          @ykaul sounds like a separate bug while I filed as JENKINS-23561.

          Jesse Glick added a comment - @ykaul sounds like a separate bug while I filed as JENKINS-23561 .

          ikedam added a comment -

          Every plugin using /lib/project/matrix tag causes the same problem.

          ikedam added a comment - Every plugin using /lib/project/matrix tag causes the same problem.

          Jesse Glick added a comment -

          @ikedam I grepped @jenkinsci sources for references to this tag. I found only the usage from matrix-combinations-parameter, filed as JENKINS-23561.

          Jesse Glick added a comment - @ikedam I grepped @jenkinsci sources for references to this tag. I found only the usage from matrix-combinations-parameter , filed as JENKINS-23561 .

          ikedam added a comment -

          Fixed matrix-combinations-parameter-plugin in 1.0.7.
          It will be available in a day.

          ikedam added a comment - Fixed matrix-combinations-parameter-plugin in 1.0.7. It will be available in a day.

          ikedam added a comment -

          marix-combinations-parameter-plugin no longer depends on /lib/project/matrix tag. (It is anyway required to fix JENKINS-23030).

          ikedam added a comment - marix-combinations-parameter-plugin no longer depends on /lib/project/matrix tag. (It is anyway required to fix JENKINS-23030 ).

          Yaniv Kaul added a comment -

          Looks good on my setup: had 1.556, upgraded the plugin first, then to 1.570, and all seems to be working.
          Thanks!

          Yaniv Kaul added a comment - Looks good on my setup: had 1.556, upgraded the plugin first, then to 1.570, and all seems to be working. Thanks!

            jglick Jesse Glick
            uwehermann Uwe Hermann
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: