Skip to content

Instantly share code, notes, and snippets.

@phynet
Last active June 4, 2022 16:27
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save phynet/a95ebe2791edb7e6b92b to your computer and use it in GitHub Desktop.
Save phynet/a95ebe2791edb7e6b92b to your computer and use it in GitHub Desktop.
Jenkins Mac OS X configuration

Jenkins Mac OS X configuration

First, copy the plist file from (take note, that the number 1,590 may vary in each machine)

/usr/local/Cellar/jenkins/1.590

to LaunchAgent folder:

cp /usr/local/Cellar/jenkins/1.590/homebrew.mxcl.jenkins.plist /Users/medianet/Library/LaunchAgents 

Now, you can Start Jenkins

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist

And Stop Jenkins

launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist

To have start jenkins at login:

ln -sfv /usr/local/opt/jenkins/*.plist ~/Library/LaunchAgents

Then load jenkins:

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist

Or, if you don't want/need launchctl, you can just run:

java -jar /usr/local/opt/jenkins/libexec/jenkins.war

Or, in my case using this path:

java -jar /usr/local/Cellar/jenkins/1.590/libexec/jenkins.war

Other paths if Jenkins wasn't installed with Brew

~/Library/LaunchAgents     Per-user agents provided by the user.
~/Library/LaunchAgents      Per-user agents provided by the administrator.
~/Library/LaunchDaemons     System wide daemons provided by the administrator.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment