Download Artifact uses executing plan's Variable values, not it's own plan's

XMLWordPrintable

    • Severity 3 - Minor

      I have 2 plans:
      Network
      Website
      These are 2 of many plans that have been cloned from a template I have created containing a code, tasks and a variable: package. In each plan I set the value for package to either 'network' or 'website', etc...
      When running these plans individually they work as required and create a final *.tar.gz file in ${bamboo.package}/build/output/ (eg network/build/output)

      I am now creating a 'Master' plan to combine Network and Website into one aggregated *.tar.gz
      In Master I set the variable package to 'master', add 2 Artifact Download tasks, point them at the required Network and Website plan's artifact and run.

      The logs below show the Master plan's Network Artifact Download task, and that it is substituting my

      {bamboo.package}

      variable to 'master' instead of 'network', meaning it can not find the file.

      Why is it using the master variable when it is in the network plan, this is the same in the website plan's artifact download too preventing me to locate the artifacts.

      Log file below
      ------------------------------------------------
      simple 26-Mar-2014 11:24:35 Starting task 'Network Artifact Download' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:artifactdownloadertask'
      command 26-Mar-2014 11:24:35 Substituting variable: ${bamboo.package} with master
      simple 26-Mar-2014 11:24:35 Preparing to download plan result UPA-PIBRIS-14 artifact: Shared artifact: [Publish Update tar.gz], pattern: [*.tar.gz] anchored at: [master/build/output/]
      error 26-Mar-2014 11:24:35 Unable to download artifact Shared artifact: [Publish Update tar.gz], pattern: [*.tar.gz] anchored at: [master/build/output/]
      simple 26-Mar-2014 11:24:35 Task configuration:
      simple 26-Mar-2014 11:24:35 sourcePlanKey -> [UPA-PIBRIS]
      simple 26-Mar-2014 11:24:35 artifactName_0 -> [Publish Update tar.gz]
      simple 26-Mar-2014 11:24:35 artifactId_0 -> [75792409]
      simple 26-Mar-2014 11:24:35 localPath_0 -> []
      simple 26-Mar-2014 11:24:35 Task runtime configuration:
      simple 26-Mar-2014 11:24:35 resultKey -> [UPA-PIBRIS-14]
      simple 26-Mar-2014 11:24:35 securityToken -> [e2465c590201a6cb23881af963f43aeec0d7f6a2]
      simple 26-Mar-2014 11:24:35 artifactName_0 -> [Publish Update tar.gz]
      simple 26-Mar-2014 11:24:35 artifactPattern_0 -> [*.tar.gz]
      simple 26-Mar-2014 11:24:35 runtimeArtifactIds_0 -> [0]
      simple 26-Mar-2014 11:24:35 artifactId_0 -> [75792409]
      simple 26-Mar-2014 11:24:35 localPath_0 -> []
      simple 26-Mar-2014 11:24:35 artifactLocation_0 -> [master/build/output/]
      simple 26-Mar-2014 11:24:35 Finished task 'Network Artifact Download'
      ------------------------------------------------

              Assignee:
              Unassigned
              Reporter:
              Martyn Gough
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: