Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a build job for a simple java project

I am very new to Jenkins. I have gone throught the tutorial of jenkins and I want to create a build job for simple java project. I know how to create a freestylebuild but I dont see any connection between the build and the project. Whats happening exactly. I have my project in eclipse and how can i create a build to the project. How do i know that it is the exact build for this project. Can anyone please help me.

like image 821
user1983063 Avatar asked Apr 28 '26 13:04

user1983063


1 Answers

the best thing to do would be to move your build to some standard command line tool, like ant, maven, ivy, gradle etc and then you can reuse the same build from your IDE and on jenkins. note that this doesnt mean giving up using your IDE - many IDEs can import these types of projects directly and give you all the benefits youre used to in an IDE. it simply means that you get a build thats "portable" and not tied down to the specific IDE your using.

personally i think maven is best supported in this regard, but its mostly a matter of personal preference.

like image 63
radai Avatar answered May 01 '26 02:05

radai