Skip to content

Instantly share code, notes, and snippets.

@IngmarBoddington
Created July 17, 2013 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IngmarBoddington/6019702 to your computer and use it in GitHub Desktop.
Save IngmarBoddington/6019702 to your computer and use it in GitHub Desktop.
Jenkins setup (inomplete)
http://www.nomachetejuggling.com/2011/07/31/ubuntu-tomcat-jenkins-git-ssh-togethe/
http://phpmaster.com/maven-and-php/
http://www.vogella.com/articles/Jenkins/article.html
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 http://mirrors.jenkins-ci.org/war/latest/
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: http://ant.apache.org/manual/using.html
My User / Pass: iboddington / Jenkins01
How To
======
Restart jenkins - Use URL http://localhost:8080/jenkins/restart
Ant XML - http://ant.apache.org/manual/using.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment