I am trying to upload a file to a remote server using the SCP task. I have OpenSSH configured on the remote server in question, and I am using an Amazon EC2 instance running Windows Server 2008 R2 with Cygwin to run the Bamboo build server.
My question is regarding finding the directory I wish to use. I want to upload the entire contents of C:\doc using SCP. The documentation notes that I must use the local path relative to the Bamboo working directory rather than an absolute directory name.
I found by running pwd
during the build plan that the working directory is /cygdrive/c/build-dir/CDP-DOC-JOB1
. So to get to doc, I can run cd ../../doc
. However, when I set my working directory under the SCP configuration as ../../doc/**
(using this pattern matching guide), I get the message There were no files to upload.
in the log.
C:\doc contains subfolders as well as a textfile in the root directory.
Here is my SCP task configuration:
Here is a look from cygwin at my directory: