Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not pass a null Launcher to DockerClient #260

Merged
merged 1 commit into from Dec 1, 2022

Conversation

jglick
Copy link
Member

@jglick jglick commented Jun 28, 2022

https://ci.jenkins.io/job/Core/job/acceptance-test-harness/job/PR-793/2/console (jenkinsci/acceptance-test-harness#793) failed due to an infrastructure problem:

java.io.IOException: Unable to create live FilePath for EC2 (aws-us-east-2) - High memory ubuntu 20.04 (i-0ff0c81a874559911)
	at org.jenkinsci.plugins.workflow.support.steps.FilePathDynamicContext.get(FilePathDynamicContext.java:66)
	at org.jenkinsci.plugins.workflow.support.steps.FilePathDynamicContext.get(FilePathDynamicContext.java:48)
	at org.jenkinsci.plugins.workflow.steps.DynamicContext$Typed.get(DynamicContext.java:95)
	at org.jenkinsci.plugins.workflow.cps.ContextVariableSet.get(ContextVariableSet.java:139)
	at org.jenkinsci.plugins.workflow.cps.CpsThread.getContextVariable(CpsThread.java:137)
	at org.jenkinsci.plugins.workflow.cps.CpsStepContext.doGet(CpsStepContext.java:298)
	at org.jenkinsci.plugins.workflow.cps.CpsBodySubContext.doGet(CpsBodySubContext.java:88)
	at org.jenkinsci.plugins.workflow.support.DefaultStepContext.get(DefaultStepContext.java:75)
	at org.jenkinsci.plugins.junitrealtimetestreporter.RealtimeJUnitStep.finished(RealtimeJUnitStep.java:299)
	at org.jenkinsci.plugins.junitrealtimetestreporter.RealtimeJUnitStep.access$200(RealtimeJUnitStep.java:71)
	at org.jenkinsci.plugins.junitrealtimetestreporter.RealtimeJUnitStep$Execution2$Callback2.lambda$onFailure$1(RealtimeJUnitStep.java:225)
	at org.jenkinsci.plugins.workflow.steps.GeneralNonBlockingStepExecution.lambda$run$0(GeneralNonBlockingStepExecution.java:77)
	at …

This seems to have produced a secondary error in this plugin trying to clean up on a node which no longer exists, merely adding to the noise:

 java.lang.NullPointerException
 	at org.jenkinsci.plugins.docker.workflow.client.DockerClient.launch(DockerClient.java:296)
 	at org.jenkinsci.plugins.docker.workflow.client.DockerClient.launch(DockerClient.java:292)
 	at org.jenkinsci.plugins.docker.workflow.client.DockerClient.launch(DockerClient.java:289)
 	at org.jenkinsci.plugins.docker.workflow.client.DockerClient.stop(DockerClient.java:182)
 	at org.jenkinsci.plugins.docker.workflow.WithContainerStep.destroy(WithContainerStep.java:110)
 	at org.jenkinsci.plugins.docker.workflow.WithContainerStep.access$400(WithContainerStep.java:77)
 	at org.jenkinsci.plugins.docker.workflow.WithContainerStep$Callback.finished(WithContainerStep.java:402)
 	at org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onFailure(BodyExecutionCallback.java:128)
 	at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$FailureAdapter.receive(CpsBodyExecution.java:360)
 	at com.cloudbees.groovy.cps.impl.ThrowBlock$1.receive(ThrowBlock.java:68)
 	at …

@jglick jglick requested a review from rsandell June 28, 2022 11:52
@jglick jglick added the bug label Jun 28, 2022
@jglick jglick merged commit 129a2d7 into jenkinsci:master Dec 1, 2022
@jglick jglick deleted the null-launcher branch December 1, 2022 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants