Missed Team ’24? Catch up on announcements here.

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

Cannot clone repo in custom pipeline

Martynas Šustavičius April 24, 2024

I have a shell script that checks out separate repository and makes changes to it.

That same script works fine when invoked via merge to development hook.

But when I try to run it using custom pipeline I get following error:

./script.sh
Checking out repositories
Cloning into 'my-repository'...
Warning: Permanently added the ECDSA host key for IP address 'x.x.x.x' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

 

Why could this be happening?

1 answer

0 votes
Martynas Šustavičius April 24, 2024

I was not adding:

runs-on:
- a
- b
- c

Suggest an answer

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

Atlassian Community Events