Friday 15 April 2016

Create job in jenkins

Create job in jenkins

1) Go to jenkins homepage
2) create job/New item.
3)Create a item name an choose type of project you want it can be.
a) Freestyle project
b) Maven project
c) External Job
d) Multi-configuration project
e) Copy existing Item
we are using option b.
3) In the configuration page fill following
a) Maven project name
since we are using github repository as CVS. Install the plugin if not avaialble.
to install github plugin
a.1) go to jenkins->manage plugin->manage plugin->search from "github plugin" from available plugin. check and install.
b)  click on "GitHub project" provide project URL. and description.
c) Source Code Management.
c.1) choose project URL of the github
c.2) and enter the username and pwassoer of the repositroy (define it global/system)
d)Build Triggers choose
d.1)Build whenever a SNAPSHOT dependency is built
d.2) Build when a change is pushed to GitHub
e) Build
e.1) root pom.xml
e.2) Goals and options (clean and install)
f) Intall tomcat plugin for Capitomcat plugin deploy the WAR file to multiple remote Tomcat servers.
g) install “Deploy to container Plugin" to deplloy the war file in tomcat container.
This plugin takes a war/ear file and deploys that to a running remote application server at the end of a build
h) In the post build action choose "Deploy to container Plugin"

No comments:

Post a Comment