How to enable SSH git checkout on Multibranch Pipelines

Issue

  • When trying to fetch your repo in a Multibranch Pipeline using SSH, you’re only being asked to provide an HTTPS checkout URL.
  • If you run git remote -v on your build checkout, you notice your remotes URLs are HTTPS.

Environment

Resolution

In order to enable the SSH checkout you have to add a new behavior to the checkout section.

  1. Add your HTTPS credentials for the repo checkout.
  2. Add the HTTPS repo URL.

  1. Add a new Behavior and select Checkout over SSH.

  1. Add your SSH credentials to the new behavior that got added to enable the checkout over SSH.

Tested product/plugin versions

CloudBees CI Client Controller - 2.235.5.1

CloudBees GitHub Branch Source Plugin - 2.8.3

References

CloudBees Github Branch Source Plugin

Have more questions?

0 Comments

Please sign in to leave a comment.