Setup Jenkins on Ubuntu 16.04
What is Jenkins?
Jenkins is a self-contained, open source automation server which can be used to automate all sorts of tasks related to building, testing, and delivering or deploying software.
Jenkins can be installed through native system packages, Docker, or even run standalone by any machine with a Java Runtime Environment (JRE) installed.
Jenkins Installation
sudo apt-get update

Optional Step: Opening the Port

Setting up Jenkins






Jenkins is a self-contained, open source automation server which can be used to automate all sorts of tasks related to building, testing, and delivering or deploying software.
Jenkins can be installed through native system packages, Docker, or even run standalone by any machine with a Java Runtime Environment (JRE) installed.
Jenkins Installation
- Prerequisite: Java should be pre-installed on the machine.
- Add Jenkins key by running below command, you should get the output as OK.
- Add the Debian package repository to the sources.list.
sudo apt-get update
- Now install Jenkins using apt-get.
- Once the installation is completed, start Jenkins using systemctl.
- Check the status to verify if Jenkins was successfully started.
Optional Step: Opening the Port
- Check if your firewall is enabled. You can skip this step and jump to next section "Setting up Jenkins" if your firewall is inactive.
- If the firewall is enabled, you need to open your Jenkins port 8080.
- You can now again do a status check and confirm port 8080 is open
- Additional Step: You can allow OpenSSH as well using the command
Setting up Jenkins
- Open browser and browser http://localhost:8080, if you did the setup on a server, replace localhost with the server ip. 8080 is the default port for jenkins.
- Fetch the password using cat from the mentioned path and enter it in the UI and click Continue.
- In the next screen you will be given an option to customize Jenkins using plugin, go with the Install suggested plugins. You can install the additional plugins later from Manage Jenkins.
- Plugins installation will take a while, post which you be prompted to create your first admin user. You can skip this by clicking Continue as admin but I recommend you create your own user and custom password.
- On the next screen you will have an option to customize your Jenkins URL, you can choose to do so or leave it as http://localhost:8080
- Click Save and Finish and your Jenkins is now ready to be used.
- Click Start using Jenkins to visit the Jenkins Dashboard.
Follow this link to configure your Jenkins and create Jenkins node.
Comments
Post a Comment