How to invoke maven project through Jenkins steps are below :-
1. Download and install jenkins.
2. Run jenkins.war by following command :-
java -jar jenkins.war --httpPort=9090
If you want to use https use the following command:
java -jar jenkins.war --httpsPort=9090
3. Create Jenkins Job:-
Create TestMaven Job
before creating job ensure that you set jdk path in jenkins configuration.
4. Set your POM.xml file path and build jenkins job :-
|
No comments:
Post a Comment