SCP Creating Remote Directory instead of File

Jeffrey Thibeault May 8, 2013
    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

0 votes
dave July 2, 2013

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

0 votes
Sultan Maiyaki
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.
May 9, 2013

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

Jeffrey Thibeault May 9, 2013

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

0 votes
Sultan Maiyaki
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.
May 9, 2013

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

Jeffrey Thibeault May 9, 2013

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events