Checkout Code Step Outputs "Either git or ssh (required by git to clone through SSH) is not installed in the image"

A CircleCI build can output the following message during the Checkout code step.

Either git or ssh (required by git to clone through SSH) is not installed in the image. Falling back to CircleCI's native git client but the behavior may be different from official git. If this is an issue, please use an image that has official git and ssh installed.

This is because either the SSH or Git CLI client is not available. These can either be built into the Docker image or installed during the build.

For example, in a Debian based system(Ubuntu etc) they can be installed via

- run: apt-get update -y && apt-get install openssh-client git

CircleCI also provides Pre-Built CircleCI Docker Images which come with SSH, Git, and several other tools required by the build agent.

Was this article helpful?
1 out of 2 found this helpful

Comments

0 comments

Article is closed for comments.