-
Notifications
You must be signed in to change notification settings - Fork 13
Setup Build Slave
TBD: describe general setup and meaning of on readme.
tested on 4.5.2 and 4.6 available on MAS https://itunes.apple.com/de/app/xcode/id497799835?l=en&mt=12 Download and run once to accept EULA and install updates (no comment).
To build and test the various artifacts during the build, each slave needs a set of command line tools. If you don't setup this machine from scratch it is very likely that you already have some of them installed.
- Homebrew
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"http://mxcl.github.com/homebrew/ - ios-sim
brew install ios-simhttps://github.com/phonegap/ios-sim - Node.js
brew install nodehttp://nodejs.org (make surenpmexists) - PhantomJS
brew install phantomjshttp://phantomjs.org - Git
brew install githttp://git-scm.com - Android (SDK, AVD with android 17, environment variables)
- SDK
brew install android-sdkhttp://developer.android.com/sdk - Android Platform Tools, etc.
android update sdk -u --filter platform-tools,android-17,system-image,extra-intel-Hardware_Accelerated_Execution_Manager - create and AVD
android create avd -n default -t android-17 -b x86 - if not installed via
brewmake sureANDROID_SDK_ROOTis set andandroidandadbare on the path
- SDK
CloudBee's custom build slaves need to be authorized via SSH and require you to provide a public SSH key. For security reasons you should not re-use and store your personal SSH keys on a dedicated build server. Instead, create a new pair exclusively for for authenticate the build slave against CloudBees.
ssh-keygen -t rsa -f cloudbees-slave -N ""
This commands create a pair without passphrase and stores it as cloudbees-slave(.pub) in the current directory. Please send us the public key, so we can register your node.
- create new empty directory (preferrably without whitespaces in full path)
- put your private key from above into this directory and keep its name
cloudbees-slave - put jenkins-cli.jar into it
- put run-cloudbees-slave.sh into and
chmod +xit - run
./run-cloudbees-slave.sh - (if dialog asks for installing Java, please do so and run again)
If the script terminates with "Authentication failed. No private key accepted." we haven't received your private SSH key, yet. Please wait until we registered your build slave.
TBD
