On Debian-based distributions, such as Ubuntu, you can install Jenkins through
Recent versions are available in an apt repository.
You need to have a JDK and JRE installed. openjdk-6-jre and openjdk-6-jdk are suggested.
Please make sure to back up any current Hudson or Jenkins files you may have.
What does this package do?
- Jenkins will be launched as a daemon up on start. See
/etc/init.d/jenkinsfor more details.
- The '
jenkins' user is created to run this service.
- Log file will be placed in
/var/log/jenkins/jenkins.log. Check this file if you are troubleshooting Jenkins.
/etc/default/jenkinswill capture configuration parameters for the launch.
- By default, Jenkins listen on port 8080. Access this port with your browser to start configuration.
Setting up an Apache Proxy for port 80 -> 8080
- This configuration will setup Apache2 to proxy port 80 to 8080 so that you can keep Jenkins on 8080.
sudo aptitude install apache2
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod vhost_alias
do not do this next command if you already have virtual hosting setup that depends on the default site. See my comment below - danapsimer
sudo a2dissite default
Create a file called
sudo a2ensite jenkins
sudo apache2ctl restart