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

NPE when project build triggered remotely

XMLWordPrintable

      I have a job where build is automatically triggered by git commits.
      (ie. Trigger builds remotely (e.g., from scripts) is enabled)
      I'm using Jenkins 1.560 and JDK Parameter Plugin 1.0 and I have a default JDK set for the plugin (jdk1.8)

      User-triggered builds work normally.
      Whenever automatic build occurs, a NPE is thrown:

      using GIT_SSH to set credentials 
      Checking out Revision 1c33be19e2353a9f63d84a3749d657e728acd049 (origin/master)
      ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
      java.lang.NullPointerException
      	at com.datalex.jdkparameter.JavaParameterValue.createBuildWrapper(JavaParameterValue.java:54)
      	at hudson.model.ParametersAction.createBuildWrappers(ParametersAction.java:78)
      	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:646)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:519)
      	at hudson.model.Run.execute(Run.java:1703)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:525)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:231)
      project=hudson.maven.MavenModuleSet@677131a2[DC2_autobuilder]
      

            Unassigned Unassigned
            risto_oikarinen Risto Oikarinen
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: