Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

scp-deploy seems to try to connect to bitbucket instead of server

74bit May 23, 2023

I have the following pipeline-conf

- pipe: atlassian/scp-deploy:1.2.0

variables:

USER: 'hardcoded_username'

SERVER: 'hardcoded_servername'

REMOTE_PATH: '/home/xyz/client/build'

LOCAL_PATH: 'client/build/*'

DEBUG: 'true'

EXTRA_ARGS: ["-P", "12345"]


However it seems the runner is trying to connect to bitbucket.org instead of my server and than it seems to fail.

 
Status: Downloaded newer image for bitbucketpipelines/scp-deploy:1.2.1
112
DEBUG: Starting new HTTPS connection (1): bitbucket.org:443


113
DEBUG: https://bitbucket.org:443 "GET /bitbucketpipelines/official-pipes/raw/master/pipes.prod.json HTTP/1.1" 200 None


114
INFO: Configuring ssh with default ssh key.


115
INFO: Adding known hosts...


116
INFO: Appending to ssh config file private key path


117
INFO: Applied file permissions to ssh directory.


118
usage: scp [-346ABCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file]


119
[-J destination] [-l limit] [-o ssh_option] [-P port]


120
[-S program] source ... target
121
✖ Deployment failed.


Can anyone help me? Thanks a lot!

 

1 answer

1 accepted

0 votes
Answer accepted
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 24, 2023

Hi @74bit . 
This pipe uses under the hood scp command. Please check generated by pipe scp command: is this command correct?
Also you may try to execute it without pipe usage to understand where is the problem.

Regards, Igor

74bit May 26, 2023

Thanks, but it doesn't show the SCP-command, even though Debug is turned on.

Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 26, 2023

@74bit please, check this answer, maybe this is your case.

Regards, Igor

74bit May 29, 2023

In fact, that helped me. The react-build step before did not write to the standard-dir, and the scp missed that dir in the artifact and then stopped working.
To bad there isn't any error-msg at all, like "file or directory not found"

Anyhow, thanks for your help, very much appreciated.

Like Igor Stoyanov likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events