Summary
A disabled artifact download task will still generate an exception and fail a build if it cannot find a successful plan result for the source plan of the shared artifact.
Steps to Reproduce
- Create a plan TEST-PLAN1 which exports a shared artifact.
- Create a plan TEST-PLAN2.
- Add an Artifact Download task to TEST-PLAN2 which downloads the shared artifact from TEST-PLAN1.
- Disable the artifact download task.
- Build TEST-PLAN2 before building TEST-PLAN1.
- Build fails with java.lang.IllegalArgumentException stating that it's "Unable to find at least one successful result for plan: TEST-PLAN1".
Expected Results
Build should succeed as the artifact download task is disabled.
Actual Results
The below exception is thrown in the atlassian-bamboo.log file:
java.lang.IllegalArgumentException: Unable to find at least one successful result for plan: TEST-PLAN1
at com.atlassian.bamboo.plugins.artifact.ArtifactDownloaderRuntimeDataProvider.populateRuntimeTaskData(ArtifactDownloaderRuntimeDataProvider.java:90)
Workaround
Delete the artifact download task instead of disabling it or successfully complete a build of the source plan.
- is duplicated by
-
BAM-18539 Disabled Artifact Downloader task still checks for existence of artifact
-
- Closed
-