Skip to main content
In this guide, we’ll move beyond the default apt installation and launch Jenkins directly from its WAR file. This approach gives you full control over JVM options, ports, and context paths—ideal for testing or side-by-side instances.

1. Inspecting the Apt-Installed Jenkins Service

Start by confirming the existing Jenkins process managed via apt:
Here you can see:
  • A 1 GB heap (-Xms1G -Xmx1G)
  • The WAR file at /usr/share/java/jenkins.war
  • Webroot under /var/cache/jenkins/war
  • HTTP bound to port 8080
The image shows a Jenkins dashboard displaying a list of various jobs with their statuses, build times, and other details. The interface includes options for running and managing these jobs.

2. Downloading a Specific Jenkins WAR Version

To try a newer release, browse the Jenkins WAR directory and choose 2.479.3 (released Jan 1, 2025):
The image shows a directory listing from a Jenkins website, displaying various versions of Jenkins with their last modified dates.
Once you’ve picked the version, verify the file and checksum:
The image shows a directory listing on a website, displaying files related to Jenkins, including "jenkins.war" and its SHA256 checksum.
On your Ubuntu server:

3. Launching Jenkins with Custom Parameters

By default, java -jar jenkins.war binds to port 8080—which conflicts with the apt-installed service. Override this with:
After a few seconds, you’ll see Jetty start up and the initial setup wizard prompt:
Save the generated password. You can always retrieve it later from /root/.jenkins/secrets/initialAdminPassword.

4. Unlocking Jenkins and Installing Plugins

Open your browser at:
Enter the admin password when prompted. The setup wizard will then let you:
  • Install Suggested Plugins
  • Select Plugins to customize your install
The image shows a Jenkins setup wizard screen with options to "Install suggested plugins" or "Select plugins to install."

5. Common Startup Options

Jenkins supports various JVM and server flags. Below are frequently used HTTP/HTTPS settings: For the complete list of server options, see Jenkins HTTP Server Options.

6. Verifying Multiple Jenkins Instances

In another terminal, confirm both the apt-installed and standalone WAR instances are running:
You now have two independent Jenkins servers running:
  • Port 8080 via apt
  • Port 7777 with custom context /dasher-technologies
Thank you for following this demo!

Watch Video