Installing Jenkins
Jenkins provides us with multiple ways to install it for all types of users. We can install it on at least the following operating systems:
- Ubuntu/Debian
- Windows
- Mac OS X
- OpenBSD
- FreeBSD
- openSUSE
- Gentoo
- CentOS/Fedora/Red Hat
One of the easiest options I recommend is to use a WAR file. A WAR file can be used with or without a container or web application server. Having Java is a must before we try to use a WAR file for Jenkins, which can be done as follows:
- Download the
jenkins.war
file from https://jenkins.io/ . - Open command prompt in Windows or a terminal in Linux, go to the directory where the
jenkins.war
file is stored, and execute the following command:java - jar jenkins.war
- Once Jenkins is fully up and running, as shown in the following screenshot, explore it in the web browser by visiting
http://localhost:8080
.: - By default, Jenkins works on port
8080
. Execute the following command from the command-line:java -jar jenkins.war --httpPort=9999
- For HTTPS, use the following...