docker-workflow-plugin icon indicating copy to clipboard operation
docker-workflow-plugin copied to clipboard

Do not pass a null `Launcher` to `DockerClient`

Open jglick opened this issue 3 years ago • 0 comments

https://ci.jenkins.io/job/Core/job/acceptance-test-harness/job/PR-793/2/console (https://github.com/jenkinsci/acceptance-test-harness/pull/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 avatar Jun 28 '22 11:06 jglick