I was wondering how one could change Jenkins\' default port 8080. Using linux or windows, this is simply done with the configuration file. But the Mac config file of Jenkins
I'll walk you through it:
cd /Applications/Jenkins
sudo vi winstone.properties
Add httpPort=9999 to the file. To see all the options you can put in there type java -jar jenkins.war --help
run java -jar jenkins.war from /Applications/Jenkins. Your port will be changed. jenkins.war picks up config options from ./winstone.properties by default.
Andrew-Finnells-MacBook-Pro:Jenkins afinnell$ pwd
/Applications/Jenkins
Andrew-Finnells-MacBook-Pro:Jenkins afinnell$ ls -al
total 87928
drwxr-xr-x 4 root wheel 136 Aug 21 12:32 .
drwxrwxr-x+ 83 root admin 2822 Aug 21 12:05 ..
-rwxr-xr-x 1 root wheel 45014470 Aug 19 13:14 jenkins.war
-rw-r--r-- 1 root wheel 14 Aug 21 12:32 winstone.properties
Andrew-Finnells-MacBook-Pro:Jenkins afinnell$ sudo cat winstone.properties
httpPort=9494
Andrew-Finnells-MacBook-Pro:Jenkins afinnell$ java -jar jenkins.war
Running from: /Applications/Jenkins/jenkins.war
webroot: $user.home/.jenkins
[Winstone 2011/08/21 12:33:19] - Beginning extraction from war file
Jenkins home directory: /Users/afinnell/.jenkins found at: $user.home/.jenkins
[Winstone 2011/08/21 12:33:21] - HTTP Listener started: port=9494