Sometimes artifacts are not generated in builds, which is fine in some business cases. (some of the artifacts may be defined, others are not, depending on the release)
I still like to setup the deployment task 'Download Artifact' and just have it exit without failure if the artifact is missing.
It would be great if we can check a box on the Download Artifact task configuration that says 'Fail on missing/empty artifact' (or the opposite)
The standard code is really close to having this feature.
The Artifact Downloader task is defined in
com.atlassian.bamboo.plugins.artifact.ArtifactDownloaderTask.
This class has a property of
final boolean failOnMissing = true;
which is always set to true.
If this is a configurable setting, that would help tremendously in our business case
- is resolved by
-
BAM-20498 Build failing on "Non required shared artifact"
- Closed