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
BAM-13095
    (found by searching) but I am unable to find out how to resolve or workaround it.

3 answers

This widget could not be displayed.

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|https://marketplace.atlassian.com/download/plugins/com.atlassian.bamboo.plugins.bamboo-scp-plugin/version/67] 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\atlassian-bundled-plugins.zip folder

# Restart bamboo

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

Regards,

Sultan

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?

Thanks

This widget could not be displayed.

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.

This widget could not be displayed.

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
Posted 9 hours ago in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

26 views 1 2
Join discussion

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