Install Jenkins on CentOS 7

Install Jenkins in few steps on CentOS 7.

Java is a pre-requisite for your Jenkins installation. If you don’t have it, go ahead and install it. Note that Jenkins is incompatible with the GCJ version of Java. Best options are OpenJDK and the official one.

Install Jenkins:

Setup the firewall to allow connections on port 8080

Create SSH Keys for the Jenkins User:

Setup Jenkins as a service:

Happiness! You should be able to access Jenkins GUI on port 8080.

Additional Setup through GUI

Access the Configure System section accessible through the Manage Jenkins link on the home page. Setup JDK and Maven.

Setup Jenkins credentials in the Manage Credentials section: