GitHub

Failed to connect to repository: Error performing git command ls-remote -h

During a continuous integration cycle, one of the initial steps is to fetch the code from source code repository. Just before fetching the code, we need to connect the orchestration tool used for continuous integration (CI) with the source code repository. Now suppose we are using Jenkins as the orchestration...

How to integrate a GitHub repository with a Jenkins pipeline

Let us start with a common use case in a typical project. The use case is to fetch the code from source control. Once we are execute this use case i.e. once we are able to fetch the source code, we should be able to perform continuous integration and delivery...

Generate fine grained personal access token in GitHub

What is a Personal Access Token GitHub is a tool used by many projects to store and version control their code. So, as an initial step during code integration, it is required to fetch the code from version control i.e. GitHub in our case. This can be done by using...

Trigger a Jenkins job on code push event in Github via webhooks

Trigger a Jenkins job on code push event in Github via webhooks

Overview In this post, we will discuss a fairly common use case where the source code is stored in version control like Github. We will create a job in Jenkins and integrate it with GitHub. Whenever code is updated in the GitHub repository, an event gets triggered via webhook which...