-
Bug
-
Resolution: Fixed
-
Low
-
7.0.2
-
None
-
1
-
Severity 3 - Minor
-
Issue Summary
Running Deployment Project with Docker Container will have NPE at the end
Steps to Reproduce
- Configure a Deployment Project to run with Docker Container (Docker Runner) instead of Agent Environment
- Trigger a deployment
Expected Results
It will run successfully without error
Actual Results
The below exception is thrown in the deployment log file:
simple 30-Mar-2020 20:17:39 Starting task 'Script' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script' command 30-Mar-2020 20:17:39 Beginning to execute external process for build 'Deployment of 'release-1' on 'staging''\n ... running command line: \n/Volumes/Atlassian/bamboo/atlassian-bamboo-7.0.2/temp/runInDocker5159234824733422000.sh /Volumes/Atlassian/bamboo/atlassian-bamboo-7.0.2/home/temp/1638401-1802241-2097153-ScriptBuildTask-4104524364149896417.sh\n ... in: /Volumes/Atlassian/bamboo/atlassian-bamboo-7.0.2/temp\n build 30-Mar-2020 20:17:40 hello simple 30-Mar-2020 20:17:40 Finished task 'Script' with result: Success simple 30-Mar-2020 20:17:40 Finalising the build... simple 30-Mar-2020 20:17:40 Stopping timer. simple 30-Mar-2020 20:17:40 Build 1638401-1802241-2097153 completed. error 30-Mar-2020 20:17:40 Failed to clean working directory from within the container 8f08e648-1279-455d-ab0a-4c750884363c1802241 error 30-Mar-2020 20:17:40 java.lang.NullPointerException error 30-Mar-2020 20:17:40 at com.atlassian.bamboo.v2.build.agent.docker.DockerContainerControllerImpl.clearWorkingDirectory(DockerContainerControllerImpl.java:125) error 30-Mar-2020 20:17:40 at com.atlassian.bamboo.v2.build.agent.docker.DockerContainerControllerImpl.close(DockerContainerControllerImpl.java:117) error 30-Mar-2020 20:17:40 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:131) error 30-Mar-2020 20:17:40 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:118) error 30-Mar-2020 20:17:40 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:124) error 30-Mar-2020 20:17:40 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.lambda$start$0(DefaultBuildAgent.java:108) error 30-Mar-2020 20:17:40 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48) error 30-Mar-2020 20:17:40 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26) error 30-Mar-2020 20:17:40 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17) error 30-Mar-2020 20:17:40 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41) error 30-Mar-2020 20:17:40 at java.lang.Thread.run(Thread.java:745) command 30-Mar-2020 20:17:40 Beginning to execute external process for build 'Deployment of 'release-1' on 'staging''\n ... running command line: \n/usr/local/bin/docker rm -f 8f08e648-1279-455d-ab0a-4c750884363c1802241\n ... in: /Volumes/Atlassian/bamboo/atlassian-bamboo-7.0.2/home/xml-data/build-dir/1638401-1802241\n build 30-Mar-2020 20:17:40 8f08e648-1279-455d-ab0a-4c750884363c1802241 simple 30-Mar-2020 20:17:41 Finished processing deployment result Deployment of 'release-1' on 'staging'
Notes
The deployment still finish with status Success even though the NPE happens
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
- mentioned in
-
Page Loading...