If we talk about Linux servers, the first thing we’ll think about is Debian, Ubuntu or CentOS. However, more and more companies are relying on OpenSUSE or SUSE as their server system. So you’d better keep an eye on this distribution and the way it does things. So today I’ll show you how to install Jenkins on OpenSuse 15. Although this tutorial also applies to SUSE 15.
We have already talked about Jenkins, this great application written in Java for the deployment of applications and of course, the automation of tasks concerning software and servers.
Its main feature is that it is Open Source, so the source code can be examined. On the other hand, Jenkins can be installed on Linux, Windows or Mac and thus guarantee the continuous integration of your projects regardless of the operating system. In addition, its functionality can be extended thanks to the plugins.
So, let’s start to install Jenkins on OpenSUSE 15 or SUSE 15.
1. Upgrade the system and install Java
In order for the installation to run smoothly, it is necessary to update the system. So connect to your server or open a terminal and run.
:~$ sudo zypper up
I have installed a basic version of OpenSUSE that does not have Java installed and Jenkins requires it to run. So the next step is to install Java. You need to install Java 8. So, run:
:~$ sudo zypper in java-1_8_0-openjdk
Now, check the Java version installed.
:~$ java -version
As you can see in the image, Java is installed and ready to use.
2. Install Jenkins on OpenSUSE 15 and SUSE 15
Now it’s time to install Jenkins. The easiest way to do this is through the official repository provided by Jenkins for OpenSUSE. It’s up to date and ideal.
:~$ sudo zypper addrepo -f http://pkg.jenkins.io/opensuse-stable/ jenkins
Next, install Jenkins.
:~$ sudo zypper install jenkins
Now, start the service and check the status.
:~$ sudo systemctl start jenkins :~$ sudo systemctl status jenkins
Jenkins uses the 8080 port. So, set the Firewall rule to make Jenkins available.
:~$ firewall-cmd --zone=public --add-port=8080/tcp --permanent :~$ firewall-cmd --zone=public --add-service=http --permanent :~$ firewall-cmd --reload
Next, get the admin password.
:~$ sudo more /var/lib/jenkins/secrets/initialAdminPassword
The next step is open your web browser and go to http://IP_SERVER:8080
. And put your password on the field.
Then you will be asked about the plugins to install. Choose the recommended plugins. Then, the installer wll start the work.
Next, create the admin account.
And that’s it. Jenkins is installed. Finally, you will see the dashboard.
Conclusion
As you can see, the installation of Jenkins in the SUSE ecosystem is not difficult. On the contrary, there is a repository that makes everything simple. Jenkins is an application that every sysadmin should use for the automation and deployment of software projects.
So, please share this article in your social networks.