Jenkins can also be installed using brew:

brew install jenkins

to upgrade, run

brew upgrade jenkins

When using launchctl the port will be 8080


To restart jenkins after an upgrade:

brew services restart jenkins

Or, if you don't want/need a background service you can just run: jenkins

$ 	jenkins-lts launchctl
$ sudo vi /usr/local/opt/jenkins-lts/homebrew.mxcl.jenkins-lts.plist  

change port to 9999

$ sudo vi /Applications/Jenkins/winstone.properties 

Add httpPort=9999 to the file.

Screenshots

Install the LTS version


Note:

When using launchctl the port will be 8080.
brew install jenkins-lts  to upgrade, run  brew upgrade jenkins-lts
To have launchd start jenkins-lts now and restart at login:
brew services start jenkins-lts


Or, if you don't want/need a background service you can just run: jenkins-lts

http://localhost:8080  and I changed to http://localhost:9999

change password :

MBP-de-REDDAH:secrets rcherara$ vi master.key
MBP-de-REDDAH:secrets rcherara$ sudo passwd jenkins
Password:Changing password for jenkins.
New password:
Retype new password:
MBP-de-REDDAH:secrets rcherara$ jenkins is the password
user : rcherara password rcherara

Change Jenkins port :

$ 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.

jenkins-lts launchctl

use

brew services restart jenkins-lts to restart.

-- To have jenkins start launchd on login: ln -sfv /usr/local/opt/jenkins/*.plist ~/Library/LaunchAgents

/Users/rcherara/.jenkins/secrets

For your information: The initial 'admin' password is found in this file
'/Users/Shared/Jenkins/Home/secrets/initialAdminPassword'
/Users/rcherara/.jenkins/secrets/initialAdminPassword

Jenkins Help

$ java -jar jenkins.war --help

Screenshots