You may have heard or read articles regarding continuous integration and delivery and thought how exactly does one do that? Well, the simple answer is to constantly build your application when you add new code to the code base. This can become a tiresome task as builds may take time and if a code push breaks the application you may need to roll back the push entirely. This is where a platform such as Jenkins comes in. Jenkins is software that allows for continuous integration, which means that when a developer makes changes to the code base and pushes them, Jenkins will trigger a build of the application and run any test automatically. In this article, we will cover how to install Jenkins on your server.
- Debian server
Let’s start with making sure Debian is up to date.
sudo apt-get update
sudo apt install default-jre
Next, get the Jenkins source lists.
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add - sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
Update Debian again and install Jenkins.
sudo apt update sudo apt install jenkins
sudo service jenkins restart
When Jenkins is up and running you can see the GUI interface by going to http://localhost:8080.
In this article, we have installed Jenkins on your server. In the next article, we will go more in-depth into setting up an application using Jenkins.