Install yosemite

set system name in system preferences->sharing

Update system in app store

Install Xcode from app store

install xcode commandline tools

xcode-select --install

accept licence

xcodebuild -license

install java

install ? Mac Ports

Update ports database ready for use

sudo port -v selfupdate
sudo port upgrade outdated

install required packages

sudo port install git ccache expat openssl curl libjpeg-turbo libpng p5-html-parser screen bison pkgconfig

create jenkins user

enable ssh login for jenkins user in system preferences->sharing->remote login

Add node on jenkins master CI instance.

Name       cislave14
Description    Mac os X yosemite build slave
# of executors 2
Remote FS root /Users/jenkins/jenkins
Labels     x86_64-apple-darwin14.5.0

take note of secret and slave url for use in next steps.

As jenkins user:

create jenkins workspace directory

mkdir jenkins

download slave jar

curl -o slave.jar

create jenkins slave script

cat << EOF >

java -Djava.awt.headless=true -jar slave.jar -jnlpUrl -secret 1234
chmod a+x

create ssh keypair (accept defaults - no password)

ssh-keygen -t rsa -C ""

copy .ssh/ from slave to jenkins master node and append to /home/netsurf/.ssh/authorized_keys

start slave daemon in screen