Created
October 2, 2012 14:32
-
-
Save chrjoh/3819587 to your computer and use it in GitHub Desktop.
Local setup of Jenkins on a mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jenkins | |
Download from jenkins and run the installer | |
Load and unload manually can be done with | |
load:sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist | |
unload: sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist | |
heap-size | |
sudo defaults write /Library/Preferences/org.jenkins-ci heapSize 1024M | |
then unload and lot it to get the new configuration | |
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist | |
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist | |
Change default port | |
sudo defaults write /Library/Preferences/org.jenkins-ci httpPort '7070' | |
To check the values | |
defaults read /Library/Preferences/org.jenkins-ci | |
Plugins | |
Goto the plugins page click on plugins, restart jenkins so that it read the downloaded list | |
ssh-key's | |
mkdir ~/.ssh | |
chmod 700 ~/.ssh | |
ssh-keygen -t rsa | |
Then do | |
Generating public/private rsa key pair. | |
Enter file in which to save the key (/home/b/.ssh/id_rsa): | |
Enter passphrase (empty for no passphrase): | |
Enter same passphrase again: | |
Your identification has been saved in /home/b/.ssh/id_rsa. | |
Your public key has been saved in /home/b/.ssh/id_rsa.pub. | |
As jenkins user run : ssh git@github.com | |
answer yes to add key | |
Install rvm (for ruby) | |
Guide at http://yakiloo.com/setup-jenkins-and-rvm/ | |
But change the url to | |
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
Install the ruby's needed (rvm install rvm 1.9.2-p290) | |
nice instructions on setup for mac | |
http://goodliffe.blogspot.se/2011/09/how-to-set-up-jenkins-ci-on-mac.html | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment