Deployment fail to download artifact even though the artifact isn't produced in the build result

XMLWordPrintable

    • Type: Bug
    • Resolution: Answered
    • Priority: Low
    • None
    • Affects Version/s: 5.10.0, 5.13.2
    • Component/s: None
    • Severity 3 - Minor

      Summary

      Deployment fail to download artifact even though the artifact isn't produced in the build result

      Steps to Reproduce

      1. Create a build plan with multiple Artifact definition - ArtifactA and ArtifactB
      2. Create a deployment environment with Artifact Download task
      3. Configure the Artifact Download task to download from "All artifacts"
      4. Run the build plan that will only produce ArtifactA
        ArtifactB is only produced depending on certain case
      5. Run deployment depending on the build result above

      Expected Results

      Deployment successful

      Actual Results

      Deployment fail because it is trying to download ArtifactB. The following is shown in the deployment log:

      03-Oct-2016 22:43:34	Build Deployment of 'release-5' on 'environment' started building on agent Default Agent
      03-Oct-2016 22:43:34	
      03-Oct-2016 22:43:34	Build working directory is /Users/klfoong/Desktop/ServiceRocket/bamboo/atlassian-bamboo-5.13.2/home/xml-data/build-dir/851969-950273
      03-Oct-2016 22:43:34	Executing build Deployment of 'release-5' on 'environment'
      03-Oct-2016 22:43:34	Starting task 'Clean working directory task' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:cleanWorkingDirectoryTask'
      03-Oct-2016 22:43:34	Cleaning working directory '/Users/klfoong/Desktop/ServiceRocket/bamboo/atlassian-bamboo-5.13.2/home/xml-data/build-dir/851969-950273'
      03-Oct-2016 22:43:34	Finished task 'Clean working directory task' with result: Success
      03-Oct-2016 22:43:34	Starting task 'Download release contents' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:artifactdownloadertask'
      03-Oct-2016 22:43:34	Preparing to download plan result BAM-GIT-6 artifact: Shared artifact: [ArtifactB], pattern: [ArtifactB.xml]
      03-Oct-2016 22:43:34	Unable to download artifact Shared artifact: [ArtifactB], pattern: [ArtifactB.xml]
      03-Oct-2016 22:43:34	Task configuration:
      03-Oct-2016 22:43:34	artifactName_0 -> [ArtifactB]
      03-Oct-2016 22:43:34	artifactId_0 -> [753666]
      03-Oct-2016 22:43:34	sourcePlanKey -> [BAM-GIT]
      03-Oct-2016 22:43:34	localPath_0 -> []
      03-Oct-2016 22:43:34	Task runtime configuration:
      03-Oct-2016 22:43:34	securityToken -> [06442850f8e48ab9cd4da09017e7d3931c76f8f5]
      03-Oct-2016 22:43:34	runtimeArtifactIds_0 -> [0]
      03-Oct-2016 22:43:34	artifactName_0 -> [ArtifactB]
      03-Oct-2016 22:43:34	artifactId_0 -> [753666]
      03-Oct-2016 22:43:34	resultKey -> [BAM-GIT-6]
      03-Oct-2016 22:43:34	artifactLocation_0 -> []
      03-Oct-2016 22:43:34	localPath_0 -> []
      03-Oct-2016 22:43:34	artifactPattern_0 -> [ArtifactB.xml]
      03-Oct-2016 22:43:34	Finished task 'Download release contents' with result: Error
      03-Oct-2016 22:43:34	Finalising the build...
      03-Oct-2016 22:43:34	Stopping timer.
      03-Oct-2016 22:43:34	Build 851969-950273-1572870 completed.
      03-Oct-2016 22:43:34	Finished processing deployment result Deployment of 'release-5' on 'environment'
      

      Workaround

      Need to create fake ArtifactB

              Assignee:
              Unassigned
              Reporter:
              Foong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: