Installing and setting up Jenkins when you already have Java

Malintha Amarasinghe
3 min readSep 6, 2020

--

Jenkins is one of the famous platforms available currently for creating Continuous Integration (CI) and Continuous Delivery/Deployment (CD) pipelines. It has been around for quite a long time and it is one of the oldest platforms available. Given that there are lots of other similar tools are available right now, Jenkins is still unbeaten with lots of support, flexibility, and extensibility with thousands of available plugins to do various tasks.

Here we are going to look at installing Jenkins with very simple steps.

  1. Download Jenkins from https://www.jenkins.io/download/
java -jar jenkins.war

Run Jenkins in the background using

nohup java -jar jenkins.war > jenkins.log 2>&1 </dev/null &

Use the admin password generated in the log for Administrator password in the login screen.

*************************************************************Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:
53ddeb77529841aca4a118b05c3b26e2This may also be found at: /root/.jenkins/secrets/initialAdminPassword*************************************************************
  • Choose Install Suggested Plugins option.
  • Wait until the installation finishes. This will install the most frequent plugins that are used in Jenkins.
  • Create an admin user.
  • Change the URL if required. In a proper setup, you need to provide this with a URL that the users of the Jenkins are expected to use. Because I am running this locally, I am keeping as it is.
  • You have successfully installed Jenkins now!

See you in the next article!!

If you are interested, see how Jenkins Pipeline can be used to set up a CI/CD pipeline for API development with WSO2 API Manager.

--

--