Example – the typical DevOps process for a Java development stack

The prerequisites are as follows:

  • Java version 1.6 or above
  • Apache Maven 3.5.2
  • Jenkins server
Note: Use latest version of software available. In future, the previous versions may not be compatible.

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 ...

Get DevOps for Salesforce now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.