The prerequisites are as follows:
- Java version 1.6 or above
- Apache Maven 3.5.2
- Jenkins server
If you haven't already installed Java, you can download it from the official website: https://java.com/en/download/.
Use the following commands for this sample CI/CD application. I will be using an Ubuntu 16.04 instance for setup. So let's start by installing Java.
Log in to your Ubuntu server machine as a normal user. We need a user with sudo access for installing packages on the machine. I will be using the Ubuntu username for this example:
# sudo apt-get update # sudo apt-get ...