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

multijob plugin throws NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: multijob-plugin
    • Labels:
      None
    • Environment:
      Ubuntu 14.04
    • Similar Issues:

      Description

      Stacktrace is below. Will include job configuration if you need it.
      This error occurrs when the first multijob phase build step is ran, which comes after two regular build steps.

      ERROR: Build step failed with exception
      java.lang.NullPointerException
      at com.tikal.jenkins.plugins.multijob.MultiJobBuilder.getScmChange(MultiJobBuilder.java:171)
      at com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform(MultiJobBuilder.java:243)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
      at hudson.model.Build$BuildExecution.build(Build.java:205)
      at hudson.model.Build$BuildExecution.doRun(Build.java:162)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:136)
      at hudson.model.Run.execute(Run.java:1741)
      at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:408)
      Build step 'MultiJob Phase' marked build as failure

        Attachments

          Issue Links

            Activity

            Hide
            jfemia James Femia added a comment -

            I also encounter this issue in 1.20 and 1.18 when using the "Build only if SCM changes" option on a phase job, if the job referenced by that phase job is already in progress.

            Show
            jfemia James Femia added a comment - I also encounter this issue in 1.20 and 1.18 when using the "Build only if SCM changes" option on a phase job, if the job referenced by that phase job is already in progress.
            Hide
            saschagrunert Sascha Grunert added a comment -

            Hey, is this issue still valid with the current version 1.21 and Jenkins 2?

            Show
            saschagrunert Sascha Grunert added a comment - Hey, is this issue still valid with the current version 1.21 and Jenkins 2?
            Hide
            jbochenski Jakub Bochenski added a comment - - edited

            I think I'm getting the same problem with Jenkins 2.7.1 and Multijob 1.21

            I have the "Build only if SCM changes" option enabled on the first phase job

            09:06:02 ERROR: Build step failed with exception
            09:06:02 java.lang.NullPointerException
            09:06:02 	at com.tikal.jenkins.plugins.multijob.MultiJobBuilder.getScmChange(MultiJobBuilder.java:167)
            09:06:02 	at com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform(MultiJobBuilder.java:243)
            09:06:02 	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
            09:06:02 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
            09:06:02 	at hudson.model.Build$BuildExecution.build(Build.java:205)
            09:06:02 	at hudson.model.Build$BuildExecution.doRun(Build.java:162)
            09:06:02 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
            09:06:02 	at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:136)
            09:06:02 	at hudson.model.Run.execute(Run.java:1741)
            09:06:02 	at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73)
            09:06:02 	at hudson.model.ResourceController.execute(ResourceController.java:98)
            09:06:02 	at hudson.model.Executor.run(Executor.java:410)

            Workaround is to manually wipe workspace

            Show
            jbochenski Jakub Bochenski added a comment - - edited I think I'm getting the same problem with Jenkins 2.7.1 and Multijob 1.21 I have the "Build only if SCM changes" option enabled on the first phase job 09:06:02 ERROR: Build step failed with exception 09:06:02 java.lang.NullPointerException 09:06:02 at com.tikal.jenkins.plugins.multijob.MultiJobBuilder.getScmChange(MultiJobBuilder.java:167) 09:06:02 at com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform(MultiJobBuilder.java:243) 09:06:02 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 09:06:02 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) 09:06:02 at hudson.model.Build$BuildExecution.build(Build.java:205) 09:06:02 at hudson.model.Build$BuildExecution.doRun(Build.java:162) 09:06:02 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) 09:06:02 at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:136) 09:06:02 at hudson.model.Run.execute(Run.java:1741) 09:06:02 at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73) 09:06:02 at hudson.model.ResourceController.execute(ResourceController.java:98) 09:06:02 at hudson.model.Executor.run(Executor.java:410) Workaround is to manually wipe workspace
            Hide
            jbochenski Jakub Bochenski added a comment -

            I think JENKINS-31643 is a duplicate

            Show
            jbochenski Jakub Bochenski added a comment - I think JENKINS-31643 is a duplicate
            Hide
            hagzag hagzag added a comment -

            Fixed by community pull request by https://github.com/ashaybatwal

            Show
            hagzag hagzag added a comment - Fixed by community pull request by https://github.com/ashaybatwal

              People

              • Assignee:
                Unassigned
                Reporter:
                davi_d DAvid Siegel
              • Votes:
                8 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: