Last active
December 20, 2015 17:36
-
-
Save amertkara/fc77e722cc12bc81d432 to your computer and use it in GitHub Desktop.
Installing Jenkins on OSX Server
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
sudo /usr/sbin/dseditgroup -o create -r 'Jenkins CI Group' -i 600 _jenkins | |
sudo dscl . -append /Groups/_jenkins passwd "*" | |
sudo dscl . -create /Users/_jenkins | |
sudo dscl . -append /Users/_jenkins RecordName jenkins | |
sudo dscl . -append /Users/_jenkins RealName "Jenkins CI Server" | |
sudo dscl . -append /Users/_jenkins uid 600 | |
sudo dscl . -append /Users/_jenkins gid 600 | |
sudo dscl . -append /Users/_jenkins shell /usr/bin/false | |
sudo dscl . -append /Users/_jenkins home /var/jenkins | |
sudo dscl . -append /Users/_jenkins passwd "*" | |
sudo dscl . -append /Groups/_jenkins GroupMembership _jenkins | |
sudo chown -R jenkins /var/jenkins |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>Jenkins</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/java</string> | |
<string>-jar</string> | |
<string>/usr/local/Cellar/jenkins/{VERSION}/libexec/jenkins.war</string> | |
</array> | |
<key>OnDemand</key> | |
<false/> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>UserName</key> | |
<string>jenkins</string> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>PATH</key> | |
<string>/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin</string> | |
</dict> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment