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

i am getting this problem in bitbucket pipeline

Siddhant Pandey September 4, 2023

can anyone provide me some kind of help i am going through152.jpg153.jpg154.jpg

1 answer

1 accepted

2 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 5, 2023

Hi @Siddhant Pandey!

I believe that the reason for the error you get is that you are using variables that do not exist in the pipe's definition. Please take a look at the REDAME file of this pipe's repo:

The variables provided there are the ones you can use with this pipe. If you add variables that do not exist in the pipe's definition, the pipe will not recognize them.

Specifically:

1. Instead of DEPLOY_USER, use USER

2. Instead of DEPLOY_SERVER, use SERVER

3. Instead of DEPLOY_PATH, use REMOTE_PATH

4. You can omit the variable SSH_USER

5. On the third screenshot you posted here, we can see that there is already an SSH key pair at the repo, from Repository settings > SSH keys. If you use this SSH key pair to connect to your server, there is no need to use the variable SSH_KEY. This is needed only if the SSH key pair is not added to Repository settings > SSH keys. You just need to ensure that the public SSH key is added to the ~/.ssh/authorized_keys on your server.

I would also recommend using the latest version of the pipe, 0.9.0, as 0.2.0 is an old version.

You can try a definition as follows:

- pipe: atlassian/rsync-deploy:0.9.0
variables:
USER: $DEPLOY_USER
SERVER: $DEPLOY_SERVER
REMOTE_PATH: $DEPLOY_PATH
LOCAL_PATH: '.'

Please feel free to let me know how it goes and if you need further assistance.

Kind regards,
Theodora

Siddhant Pandey September 5, 2023

First of all i wanna thank you for responding on my query. I will do what the changes you have suggested. Thankyou 

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 6, 2023

You are very welcome! Please feel free to reach out if you need anything further!

Like Sabine Mayer likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events