I am trying to install jenkins in ubuntu. I have followed the commands below:
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add - e
In my case,I add
HTTP_PORT="XXXX" JENKINS_ARGS="--httpPort=XXXX"
when defining the variables at the beginning of /etc/default/jenkins,it works .
/etc/default/jenkins