I need to generate an ssh key pair so I may use it to authenticate to bitbucket. This is so that jenkins may pull my source code and build it. Normally I would just su to the jenkins user and run ssh-keygen to achieve this.
I've edited the run file:
This gives me access to the shell where I may run
ssh-keygen to install ssh keys into jenkins user home directory under
~/.ssh. After this I exit and the Dockerfile continues.
This home directory is
/var/lib/jenkins which is also mounted as a volume on the host server.
Problem is that the ssh keys appear here but they are not working. Any ideas how to achieve this in better way ?