Errors in Artifact Download task after changing Build key
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
After moving a Build plan and changing its key, you may see the following errors in the atlassian-bamboo.log
when exporting the plan as Specs:
1
2
3
4
5
6
7
8
9
2018-01-10 14:05:51,953 ERROR [http-nio-8443-exec-190] [ViewPlanSpecs] Chain PROJ-PLAN does not exist.
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException: Chain PROJ-PLAN does not exist.
at com.atlassian.bamboo.plugins.artifact.export.ArtifactDownloaderTaskExporter.toSpecsEntity(ArtifactDownloaderTaskExporter.java:180)
at com.atlassian.bamboo.configuration.external.helpers.TaskDefinitionExportHelper.toSpecsEntity(TaskDefinitionExportHelper.java:53)
at com.atlassian.bamboo.configuration.external.PlanConfigExportServiceImpl.lambda$null$13(PlanConfigExportServiceImpl.java:299)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
Cause
This appears to be caused by the task retaining the old build key in its configuration.
Resolution
This can be resolved by following the steps below.
Given a Build plan with key PROJ-PLAN
, that had been changed to PROJ-MYPLAN
:
Go to the Plan configuration for PROJ-MYPLAN
Check for any Artifact Download Task
Check the source plan for any references to the name for PROJ-PLAN?
If so, please select the new name of PROJ-MYPLAN
Retry the export to Bamboo Specs
Was this helpful?