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"
[...] 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, [...]