Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20072

Bamboo Specs fails to deploy deployment projects associated to plan branches, with an SCP task receiving an artifact from the plan branch.

      Summary

      Bamboo Specs fails to deploy deployment projects associated to plan branches, with an SCP task receiving an artifact from the plan branch.

      Steps to Reproduce

      1. Create a build plan with a job that generates an artifact.
      2. Create a plan branch (that also generates an artifact).
      3. Create a deployemnt project associates to the plan branch.
      4. In the environment, create an "Artifact Download" Task that downloads the artifact from the plan branch.
      5. In that same environment, create an "SCP Task" that manipulates the previous artifact.
      6. Export the deployment project using Specs.
      7. Import the Specs Java file.

      Expected Results

      An environment as the one manually created.

      Actual Results

      Specs deployment fails with the following error:

      2018-09-03 09:33:41,389 INFO [BambooServer] Publishing deployment proj2
      Exception in thread "main" com.atlassian.bamboo.specs.api.exceptions.BambooSpecsPublishingException: An error occurred while publishing deployment proj2: Environment 'env2' / SCP task / Artifact: SCP Task expects an artifact 'PR1-PL1: artifact' but no Artifact Downloader task provides it.
      	at com.atlassian.bamboo.specs.util.BambooServer.translateRestException(BambooServer.java:170)
      	at com.atlassian.bamboo.specs.util.BambooServer.translateException(BambooServer.java:140)
      	at com.atlassian.bamboo.specs.util.BambooServer.publish(BambooServer.java:97)
      	at Specs.PlanSpecBSP39580.main(PlanSpecBSP39580.java:73)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
      Caused by: com.atlassian.bamboo.specs.exceptions.BambooSpecsRestRequestException: Environment 'env2' / SCP task / Artifact: SCP Task expects an artifact 'PR1-PL1: artifact' but no Artifact Downloader task provides it.
      	at com.atlassian.bamboo.specs.util.RestHelper.lambda$sendRequest$2(RestHelper.java:89)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:222)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:164)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:139)
      	at com.atlassian.bamboo.specs.util.RestHelper.sendRequest(RestHelper.java:92)
      	at com.atlassian.bamboo.specs.util.RestHelper.post(RestHelper.java:201)
      	at com.atlassian.bamboo.specs.util.SendQueue$1.run(SendQueue.java:23)
      2018-09-03 09:33:42,252 INFO [BambooServer] An error occurred while publishing deployment proj2: Environment 'env2' / SCP task / Artifact: SCP Task expects an artifact 'PR1-PL1: artifact' but no Artifact Downloader task provides it.
      

      Workaround

      In scenarios like this one, avoid using Specs. Creating and editing the project/environment from the UI will work properly.

            [BAM-20072] Bamboo Specs fails to deploy deployment projects associated to plan branches, with an SCP task receiving an artifact from the plan branch.

            Martyna Wojtas (Inactive) made changes -
            Resolution New: Timed out [ 10 ]
            Status Original: Gathering Impact [ 12072 ] New: Closed [ 6 ]
            Martyna Wojtas (Inactive) made changes -
            Labels Original: da-warranty New: bamboo-bugs-grooming da-warranty
            Pawel Skierczynski made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 2808704 ] New: JAC Bug Workflow v3 [ 3385943 ]
            Status Original: Open [ 1 ] New: Needs Triage [ 10030 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            Krystian Brazulewicz made changes -
            Labels New: da-warranty
            Krystian Brazulewicz made changes -
            Occurrence Factor New: 10% [ 12830 ]
            Status Original: Needs Triage [ 10030 ] New: Open [ 1 ]
            SET Analytics Bot made changes -
            Support reference count New: 1
            Patricio made changes -
            Component/s New: Bamboo Specs [ 46293 ]
            Patricio made changes -
            Affects Version/s New: 6.6.2 [ 80990 ]

              Unassigned Unassigned
              pdemitrio Patricio
              Affected customers:
              2 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: