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.plistbrew services restart jenkins