Maven,github and jenkins

Lets make a new project that will is lying on our git hub repo but it will run using jenkins

We make a new maven project in jenkins

In source code mangement choose git and give the address of our git repo

Then in build environment under pom we give address of pom.xml i.e the address where pom.xml for our project is lying and under goals we type test.We can give other maven commands here as well like mvn compile,test site etc.

We can make changes to in build Triggers and build settings etc as per our needs if we want.like we choose poll scm give command ie when we want to run our project.

For example ***** i,e every one minute.

So if we choose poll scm our project will only run when there are some changes made to our project in repo.

Or we can run periodically as well.

.We can then save our project build now and see the results under console output.