Changing the Jenkins-CI port on Ubuntu

So, you’ve installed Jenkins on Ubuntu (following the directions on their Wiki page) but you want it to listen on a different port (the default is 8080).  I’m really, really surprised that there’s not a config file for this.  You have to edit /etc/init.d/jenkins.

Add the following two lines at the top of the file after DAEMON_ARGS:

HTTP_PORT=8888
JENKINS_ARGS="--httpPort=$HTTP_PORT"

One thought on “Changing the Jenkins-CI port on Ubuntu

  1. [...] from: Changing the Jenkins-CI port on Ubuntu | Slacy's Blog This entry was posted in all, an, config, DE, Default, Different, direct, EA, File, for, hat, [...]

Leave a Reply