SCP Task not working in Bamboo

Harry Christodoulou August 7, 2013

Hi there,

I've got an SCP task set up to copy some files from the Bamboo build server to another server machine. I can connect to the destination server, using any type of SFTP program (WINSCP) and manually xfer a file, but when I do it via Bamboo in a plan, via the SCP Task, it doesn't xfer the file. It also does not give me any errors. The build completes successfully and the task starts and ends within a second or 2 of it starting, but no files are copied. I can't seem to find out why this is happening. Any ideas/help please?

8 answers

0 votes
Christoph Erni May 9, 2016

Has this been fixed in the meantime? I am Experiencing the same problem. Our Bamboo Version is 5.10.3. 

0 votes
ssetayeshfar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 27, 2014

Hi Marcus,

In that case we need to look at the log files. Please open a Bamboo support ticket at https://support.atlassian.comand attach your bamboo logs from under <bamboo-home>/logs.

Thank you.

Best,

Sepideh

Marcus Smith January 27, 2014

just did...:)

0 votes
ssetayeshfar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 27, 2014

Hello Marcus,

What is your version of Bamboo? and what version of "Bamboo SCP and SSH Tasks" plugin are you using? (You can check this by navigating to Bamboo Administration - > Manage Add-ons - > Show System Add-ons).

If you are not running Bamboo 5.3 and it's possible for you to upgrade your Bamboo instance to the latest version, please upgrade and check if the problem persists.

https://confluence.atlassian.com/display/BAMBOO/Bamboo+generic+upgrade+guide

https://confluence.atlassian.com/display/BAMBOO/Bamboo+upgrade+guides

We experienced issues with the SCP task plugin in previous versions that are resolved now. If you continue to experience the same problem or if upgrade is not an option for you please open a support ticket at https://support.atlassian.com.

Thank you.

Best,

Sepideh

Marcus Smith January 27, 2014

I am using the latest version of Bamboo already (5.3) and for the SCP plugin, i am using 5.0.8. http://prntscr.com/2n6nc7My build runs as successfully but no files are transfering http://prntscr.com/2n6zis

I do have my instance of Bamboo on a Windows server and I am deploying to my linux server. but that should be a problem

0 votes
Marcus Smith January 26, 2014

Have you all found a solution for this. I am having the same problem

0 votes
Harry Christodoulou August 14, 2013

Both are Windows Server 2008 R2

The /wwwroot is the virtual name which is putting to the physical path of c:\inetpub\wwwroot on the remote machine.

Also, if I use a SFTP program, such as WinSCP, I can manually xfer the file to the /wwwroot folder (virtual name) with no issues. It's only via the bamboo SCP task that it does not copy across???

Thanks for your suggestions though.

0 votes
EddieW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 14, 2013

What OS is the remote machine? What OS is the bamboo agent running on?

It is very unlikely that a windows (assuming IIS based on folder name) machine has root folder /wwwroot. It is likely this folder is under c:/Inetpub/wwwroot on both machines.

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a59a2665-9078-43ef-8b5a-5bf9bcacc95e.mspx?mfr=true

0 votes
Harry Christodoulou August 7, 2013

Hi Eddie, Thanks for your response.

I'm using the full path in the local path section.

C:\inetpub\wwwroot\test.txt

and the file is there in the above directory.

Method for authentication is password. This is also correct otherwise it would have given me a connection error.

I have also tried C:\inetpub\wwwroot\*.txt - no difference

The remote path is:

/wwwroot/

But I have tried \wwwroot\ , \wwwroot/ , /wwwroot , \wwwroot , etc to no avail.

0 votes
EddieW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 7, 2013

Are you using the full path and not a ~ for the remote? are you sure the source dir has the file?

What method are you using for authentication?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events