SCP Creating Remote Directory instead of File

    In trying to use an SCP task to deploy website files, I have an issue where the scp task is trying to create a directory instead of a file when that file is a substring of another file to be copied. Example: WebPage.aspx WebPage.aspx.cs
    The process tries to create WebPage.aspx as a directory instead of copying the file.

      This issue seems to be referenced in
    (found by searching) but I am unable to find out how to resolve or workaround it.

3 answers

Hi Jeffrey,

Can you try using the 1.20 version of the plugin which has fixed the issue and if there is any problem, it will have better debugging logs. You can replace as thus:

# Shutdown Bamboo

# Download version [1.17|] of the plugin from this page and copy it over to $HOME/plugins directory

# Delete the HOME/bundled-plugins folder

# Remove the bamboo-scp-plugin-1.17.jar file from the $INSTALL\webapp\WEB-INF\classes\ folder

# Restart bamboo

Please try it and if it is happens again, create a support ticket at href=""> attaching a sample build logs and the server logs.



Hi Sultan,

Thanks for the response. I'm using Bamboo OnDemand so I don't believe I can update the plugin version (it appears to be at 1.19). Is there a timeframe for this to be updated, or a workaround in the meantime?


Hi Jeffrey,

Hmm okay I see.. by the way can you confirm if the files are copied over despite the error? sometimes this can be the case

Yes, the files do appear to be copied despite the error.

unfortunately, even though the files are copied, the job fails due to the nonzero exit code thrown by scp.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,321 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you