Skip to main content

Posts

Showing posts from January, 2016

Deploy Ant project in Tomcat using Jenkins

Setup Ant in Jenkins: 1. Download the Ant Binary Distribution from its official site . 2. Unzip the downloaded Ant file. 3. Go to Manage Jenkins  and click on   Configure System 4. Scroll down and Go to Ant Installation and click Add Ant. 5. Uncheck the Install Automatically , another wise it will download the Ant online, After unchecking the Install Automatically it will show textfield for ANT_HOME. 6. You can specify Ant Name any name that you want to use for referering the particular Ant, And in ANT_HOME you need to specify the location for Ant where the Extracted Ant is available. 7. After that apply and save the changes. Install Tomcat Deployment plugin in Jenkins: 1. Go to Manage Jenkins  and click on Manage Plugin 2. Open Available tab and Select   Deploy To Container plugin and Install it using Install without Restart. 3. After that is Start the installation  and redirect you to Installing Plugins/Upgrades page. 4. Now select the Restar

Setup Jenkins in Tomcat Webserver

Jenkins is a software that allows continuous integration. Jenkins will be installed on a server where the central build will take place. System Requirements: 1. JDK 2. Tomcat Java installation : 1. Download the latest JDK from Oracle's site 2. CentOS look for the package jdk-7u17-linux-x64.rpm (64-bit architecture) or jdk-7u17-linux-i586.rpm (32-bit architecture) 3. Once you download the installation package, use the command rpm -ivh 4. Confirm you have the correct Java by running java -version Tomcat installation: 1. Download Apache Tomcat archive file from Apache Tomcat official download page. You can use below wget command to download it. cd /tmp wget http://www.us.apache.org/dist/tomcat/tomcat-7/v7.0.54/bin/apache-tomcat-7.0.54.tar.gz 2. After competed download extract archive file in /tmp directory and move to proper location as per your need. We are placing this under /usr/local directory. tar xzf apache-tomcat-7.0.54.tar.gz mv apache-t