ci-jenkins-pipelines icon indicating copy to clipboard operation
ci-jenkins-pipelines copied to clipboard

All clones in a Jenkins build should support ssh protocol with credentials

Open AdamBrousseau opened this issue 3 years ago • 2 comments

  1. Cloning the OpenJ9 extensions repo. This is a blocker for me.
  • There is a flag in configureBuild.sh that will swap the url but it proceeds assuming there is an ssh key on the machine. The pipeline groovy should wrap that step in an ssh-agent if a cred is supplied.
  1. Cloning ci-jenkins-pipelines repo
  2. Cloning openjdk-build repo
  3. Get OpenJ9 sources? Might come for free with #1

AdamBrousseau avatar Mar 01 '21 19:03 AdamBrousseau

This is in place for the job generation but I'm unsure if that applies to ssh protocol or not. I assume we would need to add/alter the repositories map in the defaults.json to understand ssh url's if this is not the case

M-Davies avatar Mar 01 '21 20:03 M-Davies

Also realized I would only be able to dump the private keys on machines as a temp workaround. So I would still be stuck for docker based compiles, unless the ssh dir is visible/mounted to the container which I don't believe it is.

AdamBrousseau avatar Mar 09 '21 15:03 AdamBrousseau