- Prerequisites
- Objective
- Steps
- Output
- Install Git Plugin
- Installation Steps:
- Go to Jenkins -> Manage Jenkins -> Manage Plugins
- Select Git Plugin
- Select Install with Restart
Create a Jenkins job to Download Code from Git Repository.
Condition: Only when there is a change in Git Repository Code Base
-
Login in to Jenkins
-
Click on Jenkins -> Create New Item -> Free style Job
-
Scroll down to Source Code Management
-
Select the checbox Git
-
Click on Add Credentials
-
Scroll Down to Build Triggers
-
Click on Save
Jenkins Job Checks, if there are Changes in Repository. If there are new changes comitted, Job pulls new changes from the Git Repository