How to create a build job for a simple java project

I am very new to Jenkins. I have read the jenkins tutorial and I want to create a build task for a simple java project. I know how to create a freestylebuild, but I don't see any connection between the build and the project. What is happening exactly. I have a project in eclipse and how can I create an assembly for the project. As I know this is the exact build for this project. Can anyone help me please.

+3


source to share


1 answer


Your best bet would be to move your build to a standard command line tool like ant , maven , ivy , gradle , etc. and then you can reuse the same build from your IDE and jenkins. note that this does not mean that you are not using your IDE - many IDEs can directly import these types of projects and provide you with all the benefits you have used in the IDE. it simply means that you get an assembly that is "portable" and not tied to the specific IDE you are using.



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

+2


source







All Articles