Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 2.1 KB

File metadata and controls

56 lines (38 loc) · 2.1 KB

Git Jenkins Integration

Table of Contents:

  • Prerequisites
  • Objective
  • Steps
  • Output

Prerequisites

  • Install Git Plugin
  • Installation Steps:
    • Go to Jenkins -> Manage Jenkins -> Manage Plugins
    • Select Git Plugin
    • Select Install with Restart

Objective:

Create a Jenkins job to Download Code from Git Repository.

Condition: Only when there is a change in Git Repository Code Base

Steps:

  • Login in to Jenkins

  • Click on Jenkins -> Create New Item -> Free style Job

  • Click on Save Alt text

  • Scroll down to Source Code Management

  • Select the checbox Git

  • Add the Repository URL Alt text

  • Click on Add Credentials

  • Add Git Credentials Alt text Alt text

  • Select the repository branch Alt text

  • Scroll Down to Build Triggers

  • Add the cron the Job in the Schedule Alt text

  • Click on Save

Output:

Jenkins Job Checks, if there are Changes in Repository. If there are new changes comitted, Job pulls new changes from the Git Repository

Job Build Logs