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
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

444 views 2 5
View question

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