Simple Jenkins Job

First we will create a simple java program which will be executed by Jenkins

File nam : Demo1.java

public class Demo1 {
	public static void main(String[] args) {
		System.out.println("Hello Jenkins");
	}
}

Make sure your Jenkins service is running and hit the below URL
http://localhost:8080/

It will ask you to login and login into it and you will see below screen.Click on the New Item hyperlink.

After click one New Item, below screen will appear :

  • Enter the item name as “HelloWorld”
  • Select “Freestyle project” using mouse click and press on OK button.

In the build section :

And click on Save

After Clicking on Jenkins in the left top cornor you will be able to screen as above.
You build the project by clicking on the right side of the job.

That is how you create a jekins job.

Leave a Comment