Jenkins Beginner Tutorial 8 – Jenkins integration with GIT (SCM)

Notes:

Today we will learn:

1. Create a java program and run it through command line
2. Create a Jenkins job to run the java program
3. Add this program/project to Git
4. Jenkins – add git plugin
5. Configure Jenkins job to trigger the execution when a change is pushed to GitHub


Step 1
Create a java program


Step 2
Compile from command line
javac “name of .java class”
java “name of class without extension .java”


Step 3
Create a Jenkins job to run this program


Step 4
Add the project to Git and GitHub


For Reference:

Git and GitHub Beginner Tutorial 1 – Introduction – https://youtu.be/-U-eUHI6euM?list=PLhW3qG5bs-L8OlICbNX9u4MZ3rAt5c5GG

Git and GitHub Beginner Tutorial 2 – Getting started – Install Git (mac) – https://youtu.be/0Icla6TVNNo?list=PLhW3qG5bs-L8OlICbNX9u4MZ3rAt5c5GG

Git and GitHub Beginner Tutorial 3 – Getting started – Install Git windows – https://youtu.be/sBTAkHOxvOk?list=PLhW3qG5bs-L8OlICbNX9u4MZ3rAt5c5GG


Step 5 : Configure Jenkins job to trigger build on Git commit


 

Jenkins Beginner Playlisthttps://www.youtube.com/playlist?list=PLhW3qG5bs-L_ZCOA4zNPSoGbnVQ-rp_dG

Send me your comments and feedback


 

Leave a Reply

Your email address will not be published. Required fields are marked *

five × 1 =