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

SCP task is not recognizing the Destination directory from the artifact defination and hence Remote path not getting updated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 9.1.0
    • 9.1.0, 9.2.4
    • SCP and SSH tasks
    • None

    Description

      Issue Summary

      Remote path in SCP Task is not getting updated with the Destination directory from the artifact defination

      This is reproducible on Data Center: (yes) / (no) yes

      Steps to Reproduce

      1. Create a Script taks which generates an artifact say "Training"
      2. Create a artifact defination.
      3. Mark this as shared
      4. Create a second stage under this stage create a new job
      5. In the new job define the artifact dependency as "Training" as created above
      6. Define the destination directory as ${bamboo.buildResultKey}
      7. Add a scp task to this second stage with appropiate host, authentication methods
      8. Select the artifact Training in the scp task
      9. Select the remote path as /tmp/

      Expected Results

      The artifacts are transferred over to the remote server under path /tmp/${bamboo.buildResultKey}

      Actual Results

      The ${bamboo.buildResultKey} value is not getting placed in the remote location and the artifacts are getting stored in the /tmp/ folder of the remote machine .

      Workaround

      1. Create an ssh task just before the scp task to ssh to the remote machine and " mkdir ${bamboo.buildResultKey}"
      2. Configure the Remote path as "/tmp/${bamboo.buildResultKey}"

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              f84a05b06223 Anik Sengupta
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: