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

java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • maven-plugin
    • None
    • CentoOS 5 Linux master, assorted slaves

      SEVERE: Failed to record SCM polling for hudson.maven.MavenModuleSet@1118b490[testing-parent-trunk]
      java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING
              at hudson.EnvVars.put(EnvVars.java:356)
              at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:194)
              at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1235)
              at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
              at hudson.scm.SCM.poll(SCM.java:373)
              at hudson.model.AbstractProject._poll(AbstractProject.java:1584)
              at hudson.model.AbstractProject.poll(AbstractProject.java:1493)
              at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:456)
              at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:485)
              at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
              at java.util.concurrent.FutureTask.run(FutureTask.java:138)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:619)
      

          [JENKINS-21279] java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING

          Tony Sweeney added a comment - - edited

          There was also an error on the configure page for the build in question. I set a per-node environment variable POM_PACKING=pom on the master node, which fixes the stack trace above, but now I'm seeing this one instead:

          javax.servlet.ServletException: java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING
          	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:778)
          	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
          	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248)
          	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
          	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
          	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
          	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631)
          	at org.kohsuke.stapler.Stapler.service(Stapler.java:225)
          	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
          	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
          	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
          	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
          	at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:203)
          	at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:181)
          	at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:86)
          	at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84)
          	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
          	at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter$1.call(ScmSyncConfigurationFilter.java:46)
          	at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationDataProvider.provideRequestDuring(ScmSyncConfigurationDataProvider.java:103)
          	at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter.doFilter(ScmSyncConfigurationFilter.java:42)
          	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
          	at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:66)
          	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
          	at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
          	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
          	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
          	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
          	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:91)
          	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
          	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          	at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          	at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          	at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
          	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
          	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
          	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
          	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
          	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
          	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
          	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
          	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
          	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
          	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
          	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
          	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
          	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
          	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
          	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
          	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
          	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
          	at org.eclipse.jetty.server.Server.handle(Server.java:370)
          	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
          	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949)
          	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011)
          	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
          	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
          	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
          	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
          	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
          	at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
          	at java.lang.Thread.run(Thread.java:619)
          Caused by: java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING
          	at hudson.EnvVars.put(EnvVars.java:356)
          	at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:194)
          	at hudson.scm.SubversionSCM.getModuleRoot(SubversionSCM.java:1386)
          	at hudson.model.AbstractBuild.getModuleRoot(AbstractBuild.java:372)
          	at hudson.maven.MavenModuleSet.doCheckFileInWorkspace(MavenModuleSet.java:1190)
          	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:597)
          	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
          	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
          	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
          	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120)
          	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
          	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
          	... 76 more
          

          which again breaks the configure page

          Tony Sweeney added a comment - - edited There was also an error on the configure page for the build in question. I set a per-node environment variable POM_PACKING=pom on the master node, which fixes the stack trace above, but now I'm seeing this one instead: javax.servlet.ServletException: java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:778) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631) at org.kohsuke.stapler.Stapler.service(Stapler.java:225) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:203) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:181) at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:86) at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99) at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter$1.call(ScmSyncConfigurationFilter.java:46) at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationDataProvider.provideRequestDuring(ScmSyncConfigurationDataProvider.java:103) at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter.doFilter(ScmSyncConfigurationFilter.java:42) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99) at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:66) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99) at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:91) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang. Thread .run( Thread .java:619) Caused by: java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING at hudson.EnvVars.put(EnvVars.java:356) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:194) at hudson.scm.SubversionSCM.getModuleRoot(SubversionSCM.java:1386) at hudson.model.AbstractBuild.getModuleRoot(AbstractBuild.java:372) at hudson.maven.MavenModuleSet.doCheckFileInWorkspace(MavenModuleSet.java:1190) 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:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728) ... 76 more which again breaks the configure page

          Tony Sweeney added a comment -

          The build of this project blows up too:

          Started by user Tony Sweeney
          [EnvInject] - Loading node environment variables.
          Building remotely on hudson3 in workspace S:\Hudson\workspace\auth-api-trunk
          FATAL: Null value not allowed as an environment variable: POM_PACKAGING
          java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING
          	at hudson.EnvVars.put(EnvVars.java:356)
          	at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:194)
          	at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:781)
          	at hudson.model.AbstractProject.checkout(AbstractProject.java:1414)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652)
          	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561)
          	at hudson.model.Run.execute(Run.java:1678)
          	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519)
          	at hudson.model.ResourceController.execute(ResourceController.java:88)
          	at hudson.model.Executor.run(Executor.java:231)
          

          Tony Sweeney added a comment - The build of this project blows up too: Started by user Tony Sweeney [EnvInject] - Loading node environment variables. Building remotely on hudson3 in workspace S:\Hudson\workspace\auth-api-trunk FATAL: Null value not allowed as an environment variable: POM_PACKAGING java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING at hudson.EnvVars.put(EnvVars.java:356) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:194) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:781) at hudson.model.AbstractProject.checkout(AbstractProject.java:1414) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561) at hudson.model.Run.execute(Run.java:1678) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231)

          Tony Sweeney added a comment -

          I had to back out the plugin upgrade, it broke too many of my builds.

          Tony Sweeney added a comment - I had to back out the plugin upgrade, it broke too many of my builds.

          Tony Sweeney added a comment - - edited

          Full list of plugins:

          [root@hudson0 plugins]# ls -1d *.?pi
          analysis-core.jpi
          ant.jpi
          audit-trail.jpi
          batch-task.jpi
          blame-upstream-commiters.hpi
          build-flow-plugin.jpi
          buildgraph-view.jpi
          build-name-setter.hpi
          build-pipeline-plugin.jpi
          build-user-vars-plugin.jpi
          cifs.hpi
          ci-game.hpi
          conditional-buildstep.jpi
          config-file-provider.jpi
          configurationslicing.jpi
          copyartifact.jpi
          credentials.jpi
          cvs.jpi
          dashboard-view.jpi
          description-setter.jpi
          disk-usage.jpi
          doxygen.jpi
          dry.jpi
          ec2.jpi
          email-ext.jpi
          emma.hpi
          envinject.jpi
          external-monitor-job.jpi
          findbugs.jpi
          ftppublisher.hpi
          git-client.jpi
          github-api.jpi
          github.jpi
          git.jpi
          greenballs.jpi
          htmlpublisher.jpi
          jacoco.jpi
          javadoc.jpi
          jenkins-cloudformation-plugin.jpi
          jenkins-multijob-plugin.jpi
          jira.jpi
          jquery.jpi
          ldap.jpi
          locks-and-latches.hpi
          m2release.jpi
          m2-repo-reaper.hpi
          mailer.jpi
          managed-scripts.jpi
          matrix-auth.jpi
          maven-plugin.jpi
          monitoring.jpi
          msbuild.jpi
          mstest.hpi
          multi-module-tests-publisher.jpi
          nant.hpi
          next-build-number.jpi
          node-iterator-api.jpi
          nunit.jpi
          pam-auth.jpi
          parameterized-trigger.jpi
          performance.hpi
          phing.jpi
          plot.hpi
          pmd.jpi
          port-allocator.jpi
          promoted-builds.jpi
          python.hpi
          release.jpi
          repository-connector.hpi
          run-condition.jpi
          s3.jpi
          scm-api.jpi
          scm-sync-configuration.jpi
          scons.hpi
          scp.hpi
          sectioned-view.jpi
          shelve-project-plugin.jpi
          slave-status.hpi
          sonar.jpi
          ssh-credentials.jpi
          ssh-slaves.jpi
          subversion.jpi
          svn-release-mgr.hpi
          svn-tag.hpi
          testflight.jpi
          testInProgress.jpi
          testng-plugin.jpi
          text-finder.hpi
          throttle-concurrents.jpi
          timestamper.jpi
          token-macro.jpi
          translation.jpi
          url-change-trigger.hpi
          URLSCM.hpi
          urltrigger.jpi
          violations.hpi
          ws-cleanup.jpi
          xunit.jpi
          zentimestamp.jpi
          [root@hudson0 plugins]#
          

          Tony Sweeney added a comment - - edited Full list of plugins: [root@hudson0 plugins]# ls -1d *.?pi analysis-core.jpi ant.jpi audit-trail.jpi batch-task.jpi blame-upstream-commiters.hpi build-flow-plugin.jpi buildgraph-view.jpi build-name-setter.hpi build-pipeline-plugin.jpi build-user-vars-plugin.jpi cifs.hpi ci-game.hpi conditional-buildstep.jpi config-file-provider.jpi configurationslicing.jpi copyartifact.jpi credentials.jpi cvs.jpi dashboard-view.jpi description-setter.jpi disk-usage.jpi doxygen.jpi dry.jpi ec2.jpi email-ext.jpi emma.hpi envinject.jpi external-monitor-job.jpi findbugs.jpi ftppublisher.hpi git-client.jpi github-api.jpi github.jpi git.jpi greenballs.jpi htmlpublisher.jpi jacoco.jpi javadoc.jpi jenkins-cloudformation-plugin.jpi jenkins-multijob-plugin.jpi jira.jpi jquery.jpi ldap.jpi locks-and-latches.hpi m2release.jpi m2-repo-reaper.hpi mailer.jpi managed-scripts.jpi matrix-auth.jpi maven-plugin.jpi monitoring.jpi msbuild.jpi mstest.hpi multi-module-tests-publisher.jpi nant.hpi next-build-number.jpi node-iterator-api.jpi nunit.jpi pam-auth.jpi parameterized-trigger.jpi performance.hpi phing.jpi plot.hpi pmd.jpi port-allocator.jpi promoted-builds.jpi python.hpi release.jpi repository-connector.hpi run-condition.jpi s3.jpi scm-api.jpi scm-sync-configuration.jpi scons.hpi scp.hpi sectioned-view.jpi shelve-project-plugin.jpi slave-status.hpi sonar.jpi ssh-credentials.jpi ssh-slaves.jpi subversion.jpi svn-release-mgr.hpi svn-tag.hpi testflight.jpi testInProgress.jpi testng-plugin.jpi text-finder.hpi throttle-concurrents.jpi timestamper.jpi token-macro.jpi translation.jpi url-change-trigger.hpi URLSCM.hpi urltrigger.jpi violations.hpi ws-cleanup.jpi xunit.jpi zentimestamp.jpi [root@hudson0 plugins]#

          Tony Sweeney added a comment -

          Interestingly, I can't reproduce this on my test Jenkins instance, despite running the same versions of everything.

          Tony Sweeney added a comment - Interestingly, I can't reproduce this on my test Jenkins instance, despite running the same versions of everything.

          Looks like https://github.com/jenkinsci/maven-plugin/commit/59afb8b94eade3b29de98103d914ec487c128814 could be the cause?

          Is it just that POM_PACKAGING doesn't have a default? http://maven.apache.org/pom.html says it should default to JAR

          Jeremy Sullivan added a comment - Looks like https://github.com/jenkinsci/maven-plugin/commit/59afb8b94eade3b29de98103d914ec487c128814 could be the cause? Is it just that POM_PACKAGING doesn't have a default? http://maven.apache.org/pom.html says it should default to JAR

          I resolved this by deleting all of the modules of the failing builds. The module location (and therefor the pom.xml) didn't exist in the file system.

          I'm not really sure why deleting the module forced a version control update and not deleting everything in the workspace but it did.

          Jeremy Sullivan added a comment - I resolved this by deleting all of the modules of the failing builds. The module location (and therefor the pom.xml) didn't exist in the file system. I'm not really sure why deleting the module forced a version control update and not deleting everything in the workspace but it did.

          Tony Sweeney added a comment -

          @Jeremy: I'm not sure I understand your workround. Could you be more precise about exactly what you did when "deleting all of the modules of the failing builds"?

          Tony Sweeney added a comment - @Jeremy: I'm not sure I understand your workround. Could you be more precise about exactly what you did when "deleting all of the modules of the failing builds"?

          Sure Tony,

          In my maven builds there is a "modules" section under "configure" the issue was these modules pointed to a directory that didn't exist, and that's what it was trying to read the pom.xml from (so the pom.xml didn't exist either) and instead of throwing a file not found jenkins complains about POM_PACKAGING being null.

          When I deleted a module, it forced jenkins to grab everything (including the pom) from version control again, and so pom.xml was present again and POM_PACKAGING wasn't null anymore.

          Hope this helps.

          Jeremy Sullivan added a comment - Sure Tony, In my maven builds there is a "modules" section under "configure" the issue was these modules pointed to a directory that didn't exist, and that's what it was trying to read the pom.xml from (so the pom.xml didn't exist either) and instead of throwing a file not found jenkins complains about POM_PACKAGING being null. When I deleted a module, it forced jenkins to grab everything (including the pom) from version control again, and so pom.xml was present again and POM_PACKAGING wasn't null anymore. Hope this helps.

          Tony Sweeney added a comment -

          I still don't understand what you mean by "deleting a module". Are you simply wiping the build slave workspace, or are you making a change to some of the build configuration?

          Tony Sweeney added a comment - I still don't understand what you mean by "deleting a module". Are you simply wiping the build slave workspace, or are you making a change to some of the build configuration?

          No, neither. There is a dropdown menu by the module name that will allow you to delete it.

          For the record, I tried to delete the workspace. It had no effect.

          Jeremy Sullivan added a comment - No, neither. There is a dropdown menu by the module name that will allow you to delete it. For the record, I tried to delete the workspace. It had no effect.

          Tony Sweeney added a comment - - edited

          OK, I had to fiddle a bit, as the delete dropdown menu item gave me a 403 bad crumb error, but if instead I selected the configure dropdown for the module, there was an option to delete the module in the left hand menu, which worked fine. If you then list the modules belonging to the build, the module still shows as present, but the status ball is greyed out. Running the build causes the module to be reinstantiated. This is a pretty painful workround, as I have many dozens of Maven builds each with a handful or two of modules. Worse, I can't actually validate it in my test system, since I can't reproduce the error there. But if it works it's better than nothing...

          Tony Sweeney added a comment - - edited OK, I had to fiddle a bit, as the delete dropdown menu item gave me a 403 bad crumb error, but if instead I selected the configure dropdown for the module, there was an option to delete the module in the left hand menu, which worked fine. If you then list the modules belonging to the build, the module still shows as present, but the status ball is greyed out. Running the build causes the module to be reinstantiated. This is a pretty painful workround, as I have many dozens of Maven builds each with a handful or two of modules. Worse, I can't actually validate it in my test system, since I can't reproduce the error there. But if it works it's better than nothing...

          Marco Huber added a comment -

          We have the same problem after installing Jenkins V 1.549. We copied our project from Hudson 1.398 into the new Jenkins instance, but all exisiting configurations break with this error.

          Marco Huber added a comment - We have the same problem after installing Jenkins V 1.549. We copied our project from Hudson 1.398 into the new Jenkins instance, but all exisiting configurations break with this error.

          Aapo Romu added a comment -

          I was able to fix the problem by deleting rm -rf jenkins/jobs/project_name/modules/* and then restarting Jenkins. You should be able to script that easily if you have a lot of projects

          Aapo Romu added a comment - I was able to fix the problem by deleting rm -rf jenkins/jobs/project_name/modules/* and then restarting Jenkins. You should be able to script that easily if you have a lot of projects

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          src/main/java/hudson/maven/MavenModuleSetBuild.java
          http://jenkins-ci.org/commit/maven-plugin/4bdfef299f07fabedcb43b902d5ddfc05d62f8cd
          Log:
          [FIXED JENKINS-21279]

          Not sure packaging doesn't defeault to "jar", which seems to be the default, but being defensive.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: src/main/java/hudson/maven/MavenModuleSetBuild.java http://jenkins-ci.org/commit/maven-plugin/4bdfef299f07fabedcb43b902d5ddfc05d62f8cd Log: [FIXED JENKINS-21279] Not sure packaging doesn't defeault to "jar", which seems to be the default, but being defensive.

            kohsuke Kohsuke Kawaguchi
            tony_sweeney Tony Sweeney
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: