Monday, 17 July 2017

This post talks about how to build a jenkins job using simple java program that is pulled from Github.

Technology Stack :
1) Jenkins
2) GitHub
3) Git Client

1) Create a new repository in GitHub (Assuming you have a GitHub account)

2) Give repository a name : Say > JavaHelloWorld

3) Observe few commands at newly created repository on below image.
We use add, commit, push commands to send a file to GitHub

4) (Assuming git client is installed)
Create a folder in D drive say : D:\JavaHelloWorld and put the JavaHelloWorld.java program and a batch file say run.batch in which we write javac and java commands to execute the program