How can I access Shared Credentials from Bamboo plan Shell Script Taks?
I have added a private RSA key in Shared Credentials. I know I can use it to configure access to repositories or even in SCP plugin task.
But how can I access this key in a shell script task?
Is there a way to do that, e.g. via global variable?
In my case I have to do various things via SSH, like port tunneling, rsync via SSH and so on.
So I have to run scripts like
ssh -i id_rsa_private_key SOME COMMAND HERE
And I want to be able to pick up this id_rsa_private_key from Shared Credentials via plan or global variable.