Artifact Download tasks which are disabled can still cause an exception in Bamboo

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 6.1.0
    • Affects Version/s: 5.4.2, 5.5, 5.10.0, 5.9.7, 5.13.2
    • Component/s: Artifacts
    • None
    • Severity 3 - Minor

      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

      1. Create a plan TEST-PLAN1 which exports a shared artifact.
      2. Create a plan TEST-PLAN2.
      3. Add an Artifact Download task to TEST-PLAN2 which downloads the shared artifact from TEST-PLAN1.
      4. Disable the artifact download task.
      5. Build TEST-PLAN2 before building TEST-PLAN1.
      6. 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.

            Assignee:
            Marcin Gardias
            Reporter:
            Sebastien Morin
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: