I installed Jenkins via
homebrew and wanted the web interface to be accessible over the network. By default, Jenkins is launched with the
--httpListenAddress=127.0.0.1 option and is only accessible on the local machine.
I found the
plist file that was used to launch Jenkins in
~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist and changed the argument, but each time I ran
brew services restart jenkins my changes would be lost. It turns out that this file only exists at run time. The config file that is actually used is located at
/usr/local/opt/jenkins/homebrew.mxcl.jenkins.plist. If you change this file then restart Jenkins then your changes should take effect.
sudo vim /usr/local/opt/jenkins/homebrew.mxcl.jenkins.plist brew services restart jenkins
Michael is a polyglot software engineer, committed to reducing complexity in systems and making them more predictable. Working with a variety of languages and tools, he shares his technical expertise to audiences all around the world at user groups and conferences. You can follow @mheap on Twitter