How to enable SSH git checkout on Multibranch Pipelines

Article ID:360055974891
1 minute readKnowledge base

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.

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.

This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.