By default, Jenkins is shipped with the ability to connect to CVS and Subversion; despite the growing popularity of Git, it's still not available by default. Fortunately, Jenkins has a plugin that allows you to use Git as your repository of choice. This recipe will show you how to install the plugin and configure the credentials to connect to your repo.
For this recipe, you will need a Jenkins server and a Git repo to connect to.
The following steps use a combination of Ansible and a Jenkins plugin to add Git client functionality to the Jenkins Server.