Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
5.6.0, 6.8.3, 6.9.2
-
6
-
Severity 3 - Minor
-
0
-
Description
SCP task in deployment project's environment throws NPE after the build plan moved to another project or get deleted.
java.lang.NullPointerException at com.atlassian.bamboo.plugins.scp.ScpTaskConfigurator.addArtifactsFromDownloaderTasks(ScpTaskConfigurator.java:247) at com.atlassian.bamboo.plugins.scp.ScpTaskConfigurator.addArtifactData(ScpTaskConfigurator.java:218) at com.atlassian.bamboo.plugins.scp.ScpTaskConfigurator.populateContextForEdit(ScpTaskConfigurator.java:187) at com.atlassian.bamboo.ww2.actions.build.admin.config.task.TaskUIConfigBean.prepareEditHtml(TaskUIConfigBean.java:124)
Cause
This is due to the new plan is having different artifact(different ID). Artifact Download task is still pointing to old artifact from previous plan thus the SCP task can't find the artifact.
It seems that Artifact Download task failed to get updated with a new set of artifacts from the new plan.
Workaround
Edit the environment's task. Delete the current Artifact Download task as well as the SCP task and recreate them accordingly.