Be more specific when replacing existing URL, either works though.
Add ssh keys from environment into image.

It's possible this could be solved from jenkins
layer through it's own credential management (?)
or with plugins similar to ssh-agent.