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

Can atlassian/scp-deploy overwrite an executable ?

Yohan Le Bricquer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 10, 2023

Hello,

I'm writing a pipeline with scp-deploy and the pipeline is working fine if my executable is not on the server. However if it is already there my pipeline fails. Do I have to remove the file before deploying ?

 

Pipeline:

Screenshot 2023-08-10 at 17.56.17.png

 

Error if the executable is on the server already:

Screenshot 2023-08-10 at 18.00.51.png

3 answers

1 accepted

0 votes
Answer accepted
Saxea _Flowie_
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.
August 10, 2023

Possibly because /home/ubuntu/fago is read only? Can change the permissions before copying, or `atlassian/ssh-run` and change the permissions remotely only, or use rsync instead?

0 votes
Yohan Le Bricquer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 11, 2023

Thanks for replying. I tried with rsync and it's working now whether the executable is on the server or not.

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 11, 2023

@Yohan Le Bricquer Hi.
Thanks for your question.
Try to run scp without pipe usage to understand the problem is with the pipe or with the scp command.

Regards, Igor

Suggest an answer

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

Atlassian Community Events