Published July 29, 2018 by

Install Blue Ocean Plugin in Jenkins

A Blue Ocean is a new user experience for Jenkins and provides an interactive view for Jenkins Pipeline and jobs. it reduces the clutter and increases the clarity.

Blue Ocean is simple to install and will work on basically any Jenkins 2 instance (version 2.7 or later). Even better, it runs side-by-side with the existing Jenkins web UI - you can switch back and forth between them whenever you like. There’s really no risk.

Install Blue Ocean

1. Login to your Jenkins server

2. Click Manage Jenkins in the sidebar then Manage Plugins


3. Choose the Available tab and use the search bar to find Blue Ocean.
4. Click the checkbox in the Install column.
5. Click either Install without restart or Download now and install after restart.

After you install Blue Ocean, you can start using it by clicking on Open Blue Ocean in the Side Bar of the Jenkins web UI.

Alternatively, you can access Blue Ocean directly by appending /blue to the end of your Jenkins server’s URL - e.g. http://jenkins-server-url/blue

Switching to the classic UI

Blue Ocean does not support some legacy or administrative features of Jenkins that are necessary for some users.

If you need to leave the Blue Ocean user experience to access these features, click the Go to the classic icon at the top of a common section of Blue Ocean’s navigation bar.

Clicking this button takes you to the equivalent page in the Jenkins classic UI or the most relevant classic UI page that parallels the current page in Blue Ocean.
Read More
Published July 01, 2018 by

Install Jenkins on Tomcat in Windows or Linux

CI or Continuous integration is being adopted at a very high pace to streamline the build time & testing. To implement the CI, there are many tools available but the Jenkins lead the pack.

In this tutorial, we will learn to install Jenkins on Tomcat server.

Pre-requisites

1- We need to have Java installed on our machine. install java on CentOS/RHEL & on Ubuntu.

2- We will also to have Apache Tomcat installed on our system. Install Tomcat.


Install Jenkins on Tomcat

Now that we have all completed the above-mentioned steps, we will now download the 'jenkins.war' file from the official Jenkins Web page. Execute the following command from a terminal to download the 'jenkins.war'

# wget http://mirrors.jenkins.io/war-stable/latest/jenkins.war

Now we need to copy this file to webapps directory located in Tomcat home. So if you have tomcat installed in opt directory, then run the following command.

# cp -rv jenkins.war /opt/tomcat/webapps

With this step, a process to install Jenkins on tomcat is now complete. All we have to do is to start the tomcat server. Start the tomcat server.

# sh /opt/tomcat/bin/startup.sh

After the server has been started, check if the Jenkins is working by visiting the following URL from the browser.

http://server_ip:8080/jenkins

We will have to configure the Jenkins server now. As mentioned on the webpage, we can find the admin password from location /root/.jenkins/secrets/initialAdminPassword. Get the password with the following command.

# cat /root/.jenkins/secrets/initialAdminPassword


Copy it to the webpage and press Continue.

Here it asks for install plugins please select whatever you want. 

Now complete the setup by filling out the required details. After the setup is complete, we can access jenkins and can also create new jobs on the jenkins server.

Read More