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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,112
Community Members
 
Community Events
184
Community Groups

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

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

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

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