Details
-
Bug
-
Resolution: Duplicate
-
Medium
-
None
-
5.0
-
None
Description
We just added an artifact download task to a build. We have a build plan that generates a shared artifact. Another build plan wants to download that artifact. The artifact download seems to fail when the downloading build is kicked off as a child build of another plan.
When the artifact download works, we see this in the log:
simple 21-Aug-2013 01:20:03 Starting task 'Download Backup Client' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:artifactdownloadertask' simple 21-Aug-2013 01:20:03 Preparing to download plan result CAV-BKUPRELEASE-15 artifact: Shared artifact: [Stash Backup-Restore Client Release], pattern: [stash-backup-distribution-*.zip] anchored at: [target/checkout/distribution/target] simple 21-Aug-2013 01:20:05 Artifact [Stash Backup-Restore Client Release] downloaded successfully in 2s simple 21-Aug-2013 01:20:05 Finished task 'Download Backup Client'
When the artifact download doesn't work, we see this:
simple 21-Aug-2013 01:44:34 Starting task 'Download Backup Client' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:artifactdownloadertask' simple 21-Aug-2013 01:44:34 Preparing to download plan result CAV-MASTER-1549 artifact: Shared artifact: [Stash Backup-Restore Client Release], pattern: [stash-backup-distribution-*.zip] anchored at: [target/checkout/distribution/target] error 21-Aug-2013 01:44:34 Unable to download artifact Shared artifact: [Stash Backup-Restore Client Release], pattern: [stash-backup-distribution-*.zip] anchored at: [target/checkout/distribution/target] simple 21-Aug-2013 01:44:34 Task configuration: simple 21-Aug-2013 01:44:34 sourcePlanKey -> [CAV-BKUPRELEASE] simple 21-Aug-2013 01:44:34 artifactName_2 -> [Stash Backup-Restore Client Release] simple 21-Aug-2013 01:44:34 artifactId_2 -> [455147648] simple 21-Aug-2013 01:44:34 localPath_2 -> [] simple 21-Aug-2013 01:44:34 Task runtime configuration: simple 21-Aug-2013 01:44:34 runtimeArtifactIds_2 -> [0] simple 21-Aug-2013 01:44:34 resultKey -> [CAV-MASTER-1549] simple 21-Aug-2013 01:44:34 securityToken -> [0144bcf6f97751172b4b0b3fa05bcad9efb9b93c] simple 21-Aug-2013 01:44:34 artifactName_0 -> [Stash Backup-Restore Client Release] simple 21-Aug-2013 01:44:34 artifactPattern_0 -> [stash-backup-distribution-*.zip] simple 21-Aug-2013 01:44:34 artifactId_0 -> [455147648] simple 21-Aug-2013 01:44:34 localPath_0 -> [] simple 21-Aug-2013 01:44:34 artifactLocation_0 -> [target/checkout/distribution/target] simple 21-Aug-2013 01:44:35 Finished task 'Download Backup Client'
See how the "Preparing to download plan result" line changes? It looks like the task is getting confused about where it should be downloading the artifact from. In the "broken" log, it says the artifact will come from "CAV-MASTER-1549", which is the parent build that kicks this build off and not the source of the artifact.
I'm not 100% certain about the child build being the cause, but it seems to be one thing common in the failed builds:
Attachments
Issue Links
- duplicates
-
BAM-13312 Artifact Downloader task in dependent build fails to download artifacts from parent of its parent build when triggered by parent plan (but manual build is OK)
- Closed
- is duplicated by
-
BAM-13312 Artifact Downloader task in dependent build fails to download artifacts from parent of its parent build when triggered by parent plan (but manual build is OK)
- Closed
- relates to
-
BAM-17011 Unable to download artifact Shared artifact
- Closed
- is cloned from
-
BDEV-3336 Loading...