-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
jenkins running on ubuntu, builds are run on docker hosts, based on a pipeline Jenkinsfile, with some concurrency.
the NPE does not happen always at the same step, nor at the same task... it seems random.
-
Powered by SuggestiMate
[INFO] — maven-deploy-plugin:2.7:deploy (default-deploy) @ someSubProject —
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.832s
[INFO] Finished at: Wed Apr 13 16:53:11 UTC 2016
[INFO] Final Memory: 24M/397M
[INFO] ------------------------------------------------------------------------
[ERROR] Internal error: java.lang.NullPointerException -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
at hudson.remoting.UserRequest.perform(UserRequest.java:120)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:332)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at hudson.maven.Maven3Builder$MavenExecutionListener.sessionEnded(Maven3Builder.java:469)
at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64)
at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
... 22 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException
ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
java.lang.NullPointerException
at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:101)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:859)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1738)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
[JENKINS-34208] NullPointerException pops up randomly at different steps of a pipeline build
I seem get the same problem:
/opt/jenkins/workspace/COLLINE_SNAPSHOT@4/release/target/standalone/ServerInstall.colline/reform-collineapi-config-1.4.0.0.jar
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: null
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] colline ............................................ SUCCESS [ 1.274 s]
[INFO] colline-common-parent .............................. SUCCESS [ 0.110 s]
[INFO] colline-common ..................................... SUCCESS [ 15.335 s]
[INFO] colline-logic ...................................... SUCCESS [ 1.078 s]
[INFO] colline-f3-parent .................................. SUCCESS [ 0.096 s]
[INFO] colline-f3-infrastructure .......................... SUCCESS [ 9.672 s]
[INFO] Colline Maven Plugin ............................... SUCCESS [ 3.333 s]
[INFO] colline-build ...................................... SUCCESS [ 0.475 s]
[INFO] colline-licence-build .............................. SUCCESS [ 1.103 s]
[INFO] colline-api-metadata ............................... SUCCESS [ 6.881 s]
[INFO] colline-browser .................................... SUCCESS [ 0.757 s]
[INFO] colline-organisation ............................... SUCCESS [ 3.270 s]
[INFO] colline-trading .................................... SUCCESS [ 2.182 s]
[INFO] colline-marketdata-parent .......................... SUCCESS [ 0.104 s]
[INFO] colline-marketdata ................................. SUCCESS [ 1.606 s]
[INFO] colline-marketdata-client .......................... SUCCESS [ 0.702 s]
[INFO] colline-valuation-parent ........................... SUCCESS [ 0.097 s]
[INFO] colline-valuation-base ............................. SUCCESS [ 1.256 s]
[INFO] colline-reports-base-base .......................... SUCCESS [ 0.825 s]
[INFO] colline-reports-base ............................... SUCCESS [ 2.818 s]
[INFO] colline-fx ......................................... SUCCESS [ 1.793 s]
[INFO] colline-rule-engine ................................ SUCCESS [ 1.725 s]
[INFO] colline-collateral-parent .......................... SUCCESS [ 0.102 s]
[INFO] colline-collateral-ejb3 ............................ SUCCESS [ 4.609 s]
[INFO] colline-collateral ................................. SUCCESS [ 35.185 s]
[INFO] colline-selfservice ................................ SUCCESS [ 1.476 s]
[INFO] colline-collateral-reports ......................... SUCCESS [ 10.525 s]
[INFO] colline-collateral-report-client ................... SUCCESS [ 1.327 s]
[INFO] colline-stp ........................................ SUCCESS [ 1.902 s]
[INFO] colline-reconciliation ............................. SUCCESS [ 3.309 s]
[INFO] colline-batch ...................................... SUCCESS [ 18.593 s]
[INFO] colline-web-service ................................ SUCCESS [ 1.855 s]
[INFO] colline-api ........................................ SUCCESS [ 11.734 s]
[INFO] colline-ui-infrastructure .......................... SUCCESS [ 0.368 s]
[INFO] lrsux .............................................. SUCCESS [ 28.375 s]
[INFO] lrsux-ui ........................................... SUCCESS [ 8.188 s]
[INFO] lrsux-legacy ....................................... SUCCESS [ 2.239 s]
[INFO] lrsux-legacy-ui .................................... SUCCESS [ 1.502 s]
[INFO] lrsux-java ......................................... SUCCESS [ 4.450 s]
[INFO] colline-webgui-parent .............................. SUCCESS [ 0.163 s]
[INFO] colline-welcome .................................... SUCCESS [ 1.095 s]
[INFO] colline-redirect ................................... SUCCESS [ 0.596 s]
[INFO] colline-webgui ..................................... SUCCESS [ 30.040 s]
[INFO] colline-batchws .................................... SUCCESS [ 6.402 s]
[INFO] colline-ear ........................................ SUCCESS [ 2.735 s]
[INFO] colline-client-parent .............................. SUCCESS [ 0.352 s]
[INFO] colline-lrs-3rd-party-client ....................... SUCCESS [ 1.199 s]
[INFO] colline-lrs-client ................................. SUCCESS [ 4.937 s]
[INFO] colline-deployment ................................. SUCCESS [ 22.509 s]
[INFO] colline-release .................................... SUCCESS [ 45.328 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:30 min
[INFO] Finished at: 2016-11-03T18:12:43+08:00
[INFO] Final Memory: 193M/1067M
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[COLLINE_SNAPSHOT@4] $ /bin/bash /tmp/hudson7114012679890649735.sh
[Current build status] check if current [SUCCESS] is worse or equals then [UNSTABLE] and better or equals then [UNSTABLE]
Run condition [Current build status] preventing perform for step [Set the build result]
ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
java.lang.NullPointerException
project=hudson.maven.MavenModuleSet@3387a768[COLLINE_SNAPSHOT]
project.getModules()=[hudson.maven.MavenModule@5444b1a3[COLLINE_SNAPSHOT/com.lombardrisk:colline][COLLINE_SNAPSHOT/com.lombardrisk:colline][relativePath:], hudson.maven.MavenModule@1e41c84e[COLLINE_SNAPSHOT/com.lombardrisk:colline-api][COLLINE_SNAPSHOT/com.lombardrisk:colline-api][relativePath:collineapi], hudson.maven.MavenModule@387e1a61[COLLINE_SNAPSHOT/com.lombardrisk:colline-api-metadata][COLLINE_SNAPSHOT/com.lombardrisk:colline-api-metadata][relativePath:collineapimetadata], hudson.maven.MavenModule@65351f74[COLLINE_SNAPSHOT/com.lombardrisk:colline-batch][COLLINE_SNAPSHOT/com.lombardrisk:colline-batch][relativePath:batch], hudson.maven.MavenModule@64c57850[COLLINE_SNAPSHOT/com.lombardrisk:colline-batchws][COLLINE_SNAPSHOT/com.lombardrisk:colline-batchws][relativePath:batchws], hudson.maven.MavenModule@686aeb8d[COLLINE_SNAPSHOT/com.lombardrisk:colline-browser][COLLINE_SNAPSHOT/com.lombardrisk:colline-browser][relativePath:browser], hudson.maven.MavenModule@4b9fd205[COLLINE_SNAPSHOT/com.lombardrisk:colline-build][COLLINE_SNAPSHOT/com.lombardrisk:colline-build][relativePath:build], hudson.maven.MavenModule@512a64fb[COLLINE_SNAPSHOT/com.lombardrisk:colline-client-parent][COLLINE_SNAPSHOT/com.lombardrisk:colline-client-parent][relativePath:client], hudson.maven.MavenModule@558980b6[COLLINE_SNAPSHOT/com.lombardrisk:colline-collateral][COLLINE_SNAPSHOT/com.lombardrisk:colline-collateral][relativePath:collateral/collateral], hudson.maven.MavenModule@30ffc0b3[COLLINE_SNAPSHOT/com.lombardrisk:colline-collateral-ejb3][COLLINE_SNAPSHOT/com.lombardrisk:colline-collateral-ejb3][relativePath:collateral/collateral-ejb3], hudson.maven.MavenModule@5e80f0bf[COLLINE_SNAPSHOT/com.lombardrisk:colline-collateral-parent][COLLINE_SNAPSHOT/com.lombardrisk:colline-collateral-parent][relativePath:collateral], hudson.maven.MavenModule@6a0632fd[COLLINE_SNAPSHOT/com.lombardrisk:colline-collateral-report-client][COLLINE_SNAPSHOT/com.lombardrisk:colline-collateral-report-client][relativePath:collateralreportclient], hudson.maven.MavenModule@34d38bbc[COLLINE_SNAPSHOT/com.lombardrisk:colline-collateral-reports][COLLINE_SNAPSHOT/com.lombardrisk:colline-collateral-reports][relativePath:collateralreports], hudson.maven.MavenModule@3ee9ff74[COLLINE_SNAPSHOT/com.lombardrisk:colline-common][COLLINE_SNAPSHOT/com.lombardrisk:colline-common][relativePath:common/common], hudson.maven.MavenModule@11685052[COLLINE_SNAPSHOT/com.lombardrisk:colline-common-parent][COLLINE_SNAPSHOT/com.lombardrisk:colline-common-parent][relativePath:common], hudson.maven.MavenModule@38dea6e4[COLLINE_SNAPSHOT/com.lombardrisk:colline-credit-marketdata][COLLINE_SNAPSHOT/com.lombardrisk:colline-credit-marketdata][relativePath:marketdata/credit-marketdata], hudson.maven.MavenModule@4c3c5da6[COLLINE_SNAPSHOT/com.lombardrisk:colline-db-migration][COLLINE_SNAPSHOT/com.lombardrisk:colline-db-migration][relativePath:db-migration], hudson.maven.MavenModule@161e9311[COLLINE_SNAPSHOT/com.lombardrisk:colline-deployment][COLLINE_SNAPSHOT/com.lombardrisk:colline-deployment][relativePath:configuration], hudson.maven.MavenModule@24d6e902[COLLINE_SNAPSHOT/com.lombardrisk:colline-ear][COLLINE_SNAPSHOT/com.lombardrisk:colline-ear][relativePath:colline-ear], hudson.maven.MavenModule@219edfe7[COLLINE_SNAPSHOT/com.lombardrisk:colline-f3-ant][COLLINE_SNAPSHOT/com.lombardrisk:colline-f3-ant][relativePath:f3/f3-ant], hudson.maven.MavenModule@457dc7ef[COLLINE_SNAPSHOT/com.lombardrisk:colline-f3-client][COLLINE_SNAPSHOT/com.lombardrisk:colline-f3-client][relativePath:f3/f3-client], hudson.maven.MavenModule@44d13f8d[COLLINE_SNAPSHOT/com.lombardrisk:colline-f3-ejbs][COLLINE_SNAPSHOT/com.lombardrisk:colline-f3-ejbs][relativePath:f3/f3-ejbs], hudson.maven.MavenModule@4ba05446[COLLINE_SNAPSHOT/com.lombardrisk:colline-f3-infrastructure][COLLINE_SNAPSHOT/com.lombardrisk:colline-f3-infrastructure][relativePath:f3/f3-infrastructure], hudson.maven.MavenModule@617dcf4e[COLLINE_SNAPSHOT/com.lombardrisk:colline-f3-parent][COLLINE_SNAPSHOT/com.lombardrisk:colline-f3-parent][relativePath:f3], hudson.maven.MavenModule@5a36547[COLLINE_SNAPSHOT/com.lombardrisk:colline-f3-test][COLLINE_SNAPSHOT/com.lombardrisk:colline-f3-test][relativePath:f3/f3-test], hudson.maven.MavenModule@2a4e1b35[COLLINE_SNAPSHOT/com.lombardrisk:colline-fixing-marketdata][COLLINE_SNAPSHOT/com.lombardrisk:colline-fixing-marketdata][relativePath:marketdata/fixing-marketdata], hudson.maven.MavenModule@6eb993[COLLINE_SNAPSHOT/com.lombardrisk:colline-fx][COLLINE_SNAPSHOT/com.lombardrisk:colline-fx][relativePath:fx], hudson.maven.MavenModule@af2bbac[COLLINE_SNAPSHOT/com.lombardrisk:colline-licence-build][COLLINE_SNAPSHOT/com.lombardrisk:colline-licence-build][relativePath:licence-build], hudson.maven.MavenModule@70404f3d[COLLINE_SNAPSHOT/com.lombardrisk:colline-logic][COLLINE_SNAPSHOT/com.lombardrisk:colline-logic][relativePath:logic], hudson.maven.MavenModule@5a405389[COLLINE_SNAPSHOT/com.lombardrisk:colline-lrs-3rd-party-client][COLLINE_SNAPSHOT/com.lombardrisk:colline-lrs-3rd-party-client][relativePath:client/lrs-3rd-party-client], hudson.maven.MavenModule@79e0c584[COLLINE_SNAPSHOT/com.lombardrisk:colline-lrs-client][COLLINE_SNAPSHOT/com.lombardrisk:colline-lrs-client][relativePath:client/lrs-client], hudson.maven.MavenModule@15b9edde[COLLINE_SNAPSHOT/com.lombardrisk:colline-marketdata][COLLINE_SNAPSHOT/com.lombardrisk:colline-marketdata][relativePath:marketdata/marketdata-base], hudson.maven.MavenModule@4e5cd494[COLLINE_SNAPSHOT/com.lombardrisk:colline-marketdata-client][COLLINE_SNAPSHOT/com.lombardrisk:colline-marketdata-client][relativePath:marketdata/marketdata-client], hudson.maven.MavenModule@4b94692f[COLLINE_SNAPSHOT/com.lombardrisk:colline-marketdata-parent][COLLINE_SNAPSHOT/com.lombardrisk:colline-marketdata-parent][relativePath:marketdata], hudson.maven.MavenModule@6ddc4a45[COLLINE_SNAPSHOT/com.lombardrisk:colline-marketfeed][COLLINE_SNAPSHOT/com.lombardrisk:colline-marketfeed][relativePath:marketfeed], hudson.maven.MavenModule@1990305c[COLLINE_SNAPSHOT/com.lombardrisk:colline-maths][COLLINE_SNAPSHOT/com.lombardrisk:colline-maths][relativePath:common/maths], hudson.maven.MavenModule@2dc6b752[COLLINE_SNAPSHOT/com.lombardrisk:colline-maven-plugin][COLLINE_SNAPSHOT/com.lombardrisk:colline-maven-plugin][relativePath:f3/colline-maven-plugin], hudson.maven.MavenModule@22c9c6b[COLLINE_SNAPSHOT/com.lombardrisk:colline-organisation][COLLINE_SNAPSHOT/com.lombardrisk:colline-organisation][relativePath:organisation], hudson.maven.MavenModule@192ab5de[COLLINE_SNAPSHOT/com.lombardrisk:colline-reconciliation][COLLINE_SNAPSHOT/com.lombardrisk:colline-reconciliation][relativePath:reconciliation], hudson.maven.MavenModule@494cf7b8[COLLINE_SNAPSHOT/com.lombardrisk:colline-redirect][COLLINE_SNAPSHOT/com.lombardrisk:colline-redirect][relativePath:webgui/redirect], hudson.maven.MavenModule@249883c8[COLLINE_SNAPSHOT/com.lombardrisk:colline-release][COLLINE_SNAPSHOT/com.lombardrisk:colline-release][relativePath:release], hudson.maven.MavenModule@2f6faf97[COLLINE_SNAPSHOT/com.lombardrisk:colline-reports-base][COLLINE_SNAPSHOT/com.lombardrisk:colline-reports-base][relativePath:reports], hudson.maven.MavenModule@3463ddab[COLLINE_SNAPSHOT/com.lombardrisk:colline-reports-base-base][COLLINE_SNAPSHOT/com.lombardrisk:colline-reports-base-base][relativePath:valuation/reports-base-base], hudson.maven.MavenModule@761296c6[COLLINE_SNAPSHOT/com.lombardrisk:colline-rule-engine][COLLINE_SNAPSHOT/com.lombardrisk:colline-rule-engine][relativePath:ruleengine], hudson.maven.MavenModule@56b4bcb1[COLLINE_SNAPSHOT/com.lombardrisk:colline-selfservice][COLLINE_SNAPSHOT/com.lombardrisk:colline-selfservice][relativePath:collateral/selfservice], hudson.maven.MavenModule@6a43724f[COLLINE_SNAPSHOT/com.lombardrisk:colline-stp][COLLINE_SNAPSHOT/com.lombardrisk:colline-stp][relativePath:colline_stp], hudson.maven.MavenModule@abd0a9f[COLLINE_SNAPSHOT/com.lombardrisk:colline-trading][COLLINE_SNAPSHOT/com.lombardrisk:colline-trading][relativePath:trading], hudson.maven.MavenModule@42b2a002[COLLINE_SNAPSHOT/com.lombardrisk:colline-ui-infrastructure][COLLINE_SNAPSHOT/com.lombardrisk:colline-ui-infrastructure][relativePath:ui_infrastructure], hudson.maven.MavenModule@2cdb0b3c[COLLINE_SNAPSHOT/com.lombardrisk:colline-valuation-base][COLLINE_SNAPSHOT/com.lombardrisk:colline-valuation-base][relativePath:valuation/valuation-base], hudson.maven.MavenModule@4cf9fc2[COLLINE_SNAPSHOT/com.lombardrisk:colline-valuation-parent][COLLINE_SNAPSHOT/com.lombardrisk:colline-valuation-parent][relativePath:valuation], hudson.maven.MavenModule@3e755af0[COLLINE_SNAPSHOT/com.lombardrisk:colline-web-service][COLLINE_SNAPSHOT/com.lombardrisk:colline-web-service][relativePath:collinews], hudson.maven.MavenModule@6fec3044[COLLINE_SNAPSHOT/com.lombardrisk:colline-webgui][COLLINE_SNAPSHOT/com.lombardrisk:colline-webgui][relativePath:webgui/webgui], hudson.maven.MavenModule@7d9b077[COLLINE_SNAPSHOT/com.lombardrisk:colline-webgui-parent][COLLINE_SNAPSHOT/com.lombardrisk:colline-webgui-parent][relativePath:webgui], hudson.maven.MavenModule@2a6c6fa6[COLLINE_SNAPSHOT/com.lombardrisk:colline-welcome][COLLINE_SNAPSHOT/com.lombardrisk:colline-welcome][relativePath:webgui/welcome], hudson.maven.MavenModule@4956f520[COLLINE_SNAPSHOT/com.lombardrisk:entityIntrospection-maven-plugin][COLLINE_SNAPSHOT/com.lombardrisk:entityIntrospection-maven-plugin][relativePath:EntityIntrospector], hudson.maven.MavenModule@3bb9460e[COLLINE_SNAPSHOT/com.lombardrisk:lrsux][COLLINE_SNAPSHOT/com.lombardrisk:lrsux][relativePath:ui_infrastructure/lrsux], hudson.maven.MavenModule@2ad93d31[COLLINE_SNAPSHOT/com.lombardrisk:lrsux-java][COLLINE_SNAPSHOT/com.lombardrisk:lrsux-java][relativePath:ui_infrastructure/lrsux-java], hudson.maven.MavenModule@4af893b4[COLLINE_SNAPSHOT/com.lombardrisk:lrsux-legacy][COLLINE_SNAPSHOT/com.lombardrisk:lrsux-legacy][relativePath:ui_infrastructure/lrsux-legacy], hudson.maven.MavenModule@27ce6107[COLLINE_SNAPSHOT/com.lombardrisk:lrsux-legacy-ui][COLLINE_SNAPSHOT/com.lombardrisk:lrsux-legacy-ui][relativePath:ui_infrastructure/lrsux-legacy-ui], hudson.maven.MavenModule@4c5b5916[COLLINE_SNAPSHOT/com.lombardrisk:lrsux-ui][COLLINE_SNAPSHOT/com.lombardrisk:lrsux-ui][relativePath:ui_infrastructure/lrsux-ui]]
project.getRootModule()=hudson.maven.MavenModule@5444b1a3[COLLINE_SNAPSHOT/com.lombardrisk:colline][COLLINE_SNAPSHOT/com.lombardrisk:colline][relativePath:]
FATAL: null
java.lang.NullPointerException
Notified Stash for commit with id c4168f9f9b75eff2a19053dfaa4a38c412fb3ace
SSH: Current build result is [FAILURE], not going to run.
[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
Finished: FAILURE
I get this error at any time I try to modify existing job configuration - enabling "Discard old builds"
Process to recreate this error:
- Create a new pipeline job
- Run at at least one build
- Change project configuration, enable "Discard old builds" -> Log Rotation -> Max # of builds to keep 10 and "Save"
- Run another build get this error:
java.lang.NullPointerException
at hudson.Util.getDigestOf(Util.java:804)
at jenkins.plugins.git.AbstractGitSCMSource.getCacheEntry(AbstractGitSCMSource.java:573)
at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:248)
at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:196)
at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:172)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:99)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:59)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:262)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:405)
Finished: FAILURE - Disabling "Discard old builds" is not helping is getting this error constantly.
Solution:
- Delete pipeline job.
- Create a new pipeline job and configure from beginning - enable Change project configuration, enable "Discard old builds" -> Log Rotation -> Max # of builds to keep 10 and "Save"
- Run first job is fine and will keep only 10 builds.
Local Jenkinsfile in "job_name@scripts"
OS: Centos 6.9
Jenkins: 2.60.1 with all latest plugins.
I don't think this is the right component. There's nothing in the stack trace indicating you're using the build pipeline plugin. It looks like you may be using the pipeline plugin, but I'm not sure if it's related.
This part:
Makes it seem like a maven plugin problem?