7/17/2013 - 11:30 AM

Jenkins setup (inomplete)

Jenkins setup (inomplete)

Install Tomcat / Jenkins
JDK Must be installed

sudo apt-get install tomcat6 tomcat6-admin tomcat6-common
Check Tomcat working with http://localhost:8080/

Download jenkins.war from
Move jenkins.war to /var/lib/tomcat6/webapps
Fix Jenkins environment variables:
    cd /usr/share/tomcat6
    sudo mkdir .jenkins
    sudo chown tomcat6:nogroup .jenkins
    sudo service tomcat6 restart

Install Git 
Use Jenkins interface to install "Git Plugin"

cat ~/.ssh/known_hosts
sudo cp ~/.ssh/known_hosts /usr/share/tomcat6/.ssh/known_hosts
sudo chown tomcat6:nogroup /usr/share/tomcat6/.ssh/known_hosts

Note to checkout git repo will need to make key and add to server for tomcat user

Install Maven
sudo apt-get install maven2
Set MAVEN_HOME / Name in Jenkins config screen

Install Ant

sudo apt-get install <ant>
Set ANT_HOME / Name in Jenkins config screen

Set JAVA_HOME / Name in Jenkins config screen

In Configure Global Security Jenkins screen
    Enable Security
    Jenkin's own user database (Allow user to sign up)
    Logged-in users can do anything
    (Then remove Allow user to sign up once account created from login screen)

Settings / locations
Tomcat6 settings: /var/lib/tomcat6/conf/server.xml
Tomcat6 web root URL: http://localhost:8080/

Jenkins URL: http://localhost:8080/jenkins

Apache Ant:

My User / Pass: iboddington / Jenkins01

How To
Restart jenkins - Use URL http://localhost:8080/jenkins/restart
Ant XML -