Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.10.4, 7.1.1
-
None
-
3
-
Severity 2 - Major
-
2
-
Description
Issue Summary
Artifact download task fails to download artifacts from old releases if the artifact is renamed at the linked plan.
Steps to Reproduce
- Create a plan that produces an artifact "Test"
- Create a deployment project/environment linked to this plan
- Run a build
- Create release-1 and deploy it to the environment
- Run a second build
- Create release-2 and deploy it to the same environment
- Go to the linked plan and change the artifact name to "Test_change"
- Go back to the deployment project and try to rollback to release-1
Expected Results
The deployment succeeds
Actual Results
The artifact download task fails and the below error is thrown in the build logs:
15-Oct-2020 22:11:10 Build Deployment of 'release-1' on 'QA' started building on agent Agnt2, bamboo version: 7.1.1 15-Oct-2020 22:11:10 15-Oct-2020 22:11:10 Build working directory is /var/atlassian/application-data/bamboo/xml-data/build-dir/106856449-106954753 15-Oct-2020 22:11:10 Executing build Deployment of 'release-1' on 'QA' 15-Oct-2020 22:11:10 Starting task 'Clean working directory task' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:cleanWorkingDirectoryTask' 15-Oct-2020 22:11:10 Cleaning working directory '/var/atlassian/application-data/bamboo/xml-data/build-dir/106856449-106954753' 15-Oct-2020 22:11:10 Finished task 'Clean working directory task' with result: Success 15-Oct-2020 22:11:10 Starting task 'Download release contents' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:artifactdownloadertask' 15-Oct-2020 22:11:10 Preparing to download plan result AR-NC-1 artifact: Non required shared artifact: [Test_change], pattern: [**/*.txt] 15-Oct-2020 22:11:10 Unable to download artifact Non required shared artifact: [Test_change], pattern: [**/*.txt] 15-Oct-2020 22:11:10 Task configuration: 15-Oct-2020 22:11:10 artifactId_0 -> [-1] 15-Oct-2020 22:11:10 sourcePlanKey -> [AR-NC] 15-Oct-2020 22:11:10 localPath_0 -> [] 15-Oct-2020 22:11:10 Task runtime configuration: 15-Oct-2020 22:11:10 securityToken -> [5a996be4bd5858c56dacc5ea37c149d7cd4cec03] 15-Oct-2020 22:11:10 runtimeArtifactIds_0 -> [0] 15-Oct-2020 22:11:10 artifactName_0 -> [Test_change] 15-Oct-2020 22:11:10 artifactId_0 -> [106823681] 15-Oct-2020 22:11:10 resultKey -> [AR-NC-1] 15-Oct-2020 22:11:10 artifactLocation_0 -> [] 15-Oct-2020 22:11:10 localPath_0 -> [] 15-Oct-2020 22:11:10 artifactPattern_0 -> [**/*.txt] 15-Oct-2020 22:11:10 Finished task 'Download release contents' with result: Error 15-Oct-2020 22:11:10 Finalising the build... 15-Oct-2020 22:11:10 Stopping timer. 15-Oct-2020 22:11:10 Build 106856449-106954753-106528772 completed. 15-Oct-2020 22:11:10 Finished processing deployment result Deployment of 'release-1' on 'QA'
Workaround
Rename the artifact back to the original name.