Install Tomcat via Ports

sudo port install tomcat6
sudo touch /opt/local/share/java/tomcat6/conf/local.env

Create an environment file

sudo vi /opt/local/share/java/tomcat6/conf/local.env 

and adjust the memory limits by editing the local.env

export JAVA_JVM_VERSION=CurrentJDK
export JAVA_OPTS="-Xmx3000M -Xms3000M -Djava.awt.headless=true -Duser.timezone=UTC" 

Add Hudson as a servlet

cd /opt/local/share/java/tomcat6/webapps
wget http://hudson-ci.org/latest/hudson.war
chown _www:_www hudson.war

Startup Tomcat

sudo /opt/local/share/java/tomcat6/bin/startup.sh

Use your webbrowser to log into http://localhost:8080/hudson

The Hudson server runs as root, so if you want to push to a remote git repository then you’ll need to create ssl credentials for root, and upload the id_rsa.public file to the remote repository:

sudo bash
su -
ssh-keygen -t rsa

No need to set a passphrase

Plugins to enable/install:

TBA

xcodebuild configuration

TBA

AdHoc build configuration

To build AdHoc for iPhoneOS, you’ll need to enable root login, then login as root, and install your Developer and Distribution Certs and install the AdHoc provisioning profiles.

Leave a Reply