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

NPE on git.exe rev-list

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • artifactory-plugin
    • None
    • os.arch x86
      os.name Windows Server 2012 R2
      os.version 6.3
      Artifactiry Plugin Version 2.15.0
      java.runtime.version 1.8.0_66-b18
      java.version 1.8.0_66

      This issue is very similar: https://www.jfrog.com/jira/browse/HAP-1017, but clearing the cache did not solve the issue for us.

       

      – Stacktrace –

      Started by user Allen, Andrew
      Building in workspace C:\build_tools\jenkins\workspace\CloudLifter
      [WS-CLEANUP] Deleting project workspace...
      [WS-CLEANUP] Done
      Cloning the remote Git repository
      Cloning repository ssh://git@it-stash.xyz.com:7999/cssdk/cloudlifter.git
      > C:\build_tools\Git\cmd\git.exe init C:\build_tools\jenkins\workspace\CloudLifter # timeout=10
      Fetching upstream changes from ssh://git@it-stash.xyz.com:7999/cssdk/cloudlifter.git
      > C:\build_tools\Git\cmd\git.exe --version # timeout=10
      using GIT_SSH to set credentials Git SSH Token For Jenkins
      > C:\build_tools\Git\cmd\git.exe fetch --tags --progress ssh://git@it-stash.xyz.com:7999/cssdk/cloudlifter.git +refs/heads/:refs/remotes/origin/
      > C:\build_tools\Git\cmd\git.exe config remote.origin.url ssh://git@it-stash.xyz.com:7999/cssdk/cloudlifter.git # timeout=10
      > C:\build_tools\Git\cmd\git.exe config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10
      > C:\build_tools\Git\cmd\git.exe config remote.origin.url ssh://git@it-stash.xyz.com:7999/cssdk/cloudlifter.git # timeout=10
      Fetching upstream changes from ssh://git@it-stash.xyz.com:7999/cssdk/cloudlifter.git
      using GIT_SSH to set credentials Git SSH Token For Jenkins
      > C:\build_tools\Git\cmd\git.exe fetch --tags --progress ssh://git@it-stash.xyz.com:7999/cssdk/cloudlifter.git +refs/heads/:refs/remotes/origin/
      > C:\build_tools\Git\cmd\git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
      > C:\build_tools\Git\cmd\git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
      Checking out Revision 498626c988d28c75c6bb35c8b3edce0f2f95a57c (refs/remotes/origin/master)
      > C:\build_tools\Git\cmd\git.exe config core.sparsecheckout # timeout=10
      > C:\build_tools\Git\cmd\git.exe checkout -f 498626c988d28c75c6bb35c8b3edce0f2f95a57c
      Commit message: "Testing build process"
      > C:\build_tools\Git\cmd\git.exe rev-list --no-walk 27f6db9ad38dca913e40af7f325d11b7bd79922b # timeout=10
      ERROR: Processing failed due to a bug in the code. Please report this to the issue tracker (https://jenkins.io/redirect/report-an-issue).
      java.lang.RuntimeException: java.lang.NullPointerException
      at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:143)
      at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:895)
      at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:57)
      at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:168)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:634)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      at hudson.model.Run.execute(Run.java:1727)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      Caused by: java.lang.NullPointerException
      at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.createPublisherContext(MavenExtractorEnvironment.java:218)
      at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:129)
      ... 9 more
      project=hudson.maven.MavenModuleSet@1714ab[CloudLifter]
      project.getModules()=[hudson.maven.MavenModule@ae4db9[CloudLifter/com.xyz.cloudlifter:cloudlifter][CloudLifter/com.xyz.cloudlifter:cloudlifter][relativePath:], hudson.maven.MavenModule@d3f3ba[CloudLifter/com.xyz.cloudlifter:cloudlifter-ear][CloudLifter/com.xyz.cloudlifter:cloudlifter-ear][relativePath:cloudlifter-ear], hudson.maven.MavenModule@e89aa0[CloudLifter/com.xyz.cloudlifter:cloudlifter-srv][CloudLifter/com.xyz.cloudlifter:cloudlifter-srv][relativePath:cloudlifter-srv], hudson.maven.MavenModule@88bac9[CloudLifter/com.xyz.cloudlifter:cloudlifter-web][CloudLifter/com.xyz.cloudlifter:cloudlifter-web][relativePath:cloudlifter-web]]
      project.getRootModule()=hudson.maven.MavenModule@ae4db9[CloudLifter/com.xyz.cloudlifter:cloudlifter][CloudLifter/com.xyz.cloudlifter:cloudlifter][relativePath:]
      FATAL: java.lang.NullPointerException
      java.lang.NullPointerException
      at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.createPublisherContext(MavenExtractorEnvironment.java:218)
      at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:129)
      Caused: java.lang.RuntimeException
      at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:143)
      at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:895)
      at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:57)
      at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:168)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:634)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      at hudson.model.Run.execute(Run.java:1727)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      [WeblogicDeploymentPlugin] - Build didn't finish successfully. The plugin execution is disabled.
      [INFO] ------------------------------------------------------------------------
      [INFO] DEPLOYMENT UNSTABLE
      [INFO] ------------------------------------------------------------------------
      Finished: FAILURE

            eyalbe Eyal Ben Moshe
            aallen Andrew Allen
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: