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?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.