Linux Administrator

How to Create Jenkins Pipeline from Blue Ocean Interface

Blue Ocean gives a better user experience for Jenkins. This UI is designed from ground up for Jenkins pipeline and reduces clutter and increases UI clarity.

First, search for “blue ocean” and install Blue Ocean Plugin from Jenkins Plugin Manager . After you install the plugin, restart Jenkins.

On the Jenkins server, install a local git repository for blueocean to use in the pipeline.

Install a local git repository

Install a local git repository for Blue Ocean to use in the pipeline on Jenkins server.

sudo yum install git -y
cd /var/lib/jenkins
mkdir localgit
cd localgit
git clone https://my-git-repor-url/v1/repos/BinCode

Note: I gave the git repository path as /var/lib/jenkins/localgit/BinCode

After the plugin is installed, you’ll see a new menu item on the side bar called “Open Blue Ocean” as shown below:

You can also access blue ocean UI directly by appending /blue to the jenkins URL. For example:

First time, Blue Ocean will look for Jenkinsfile in your local git repository and will run a pipeline for each branch containing Jenkins file.

Since we have not created a Jenkinsfile yet, it will display a prompt create a new pipeline from the user interface.

The pipeline creation UI will walk you through the steps to create a new pipeline. First, Click on the + next to the start. Click on “Add a Step” and select “Print Message” as shown below.


After entering the message, click on the back arrow that is in front of the stage name to go back. Don’t click on Save yet.

Add another Step – Print Message – 1.2 Getting database files – Click on the back arrow in front of the stage name to go back.

Repeat above for the 3rd echo step as shown below.


After creating all the three stages, click on the Save button to save the pipeline. You can commit your changes to the master, or create a new branch. For this example, select “Commit to new branch” and give the name as “jenkins” as shown below.


Once the pipeline is created and executed, it will display the status of each stage. Click on a particular stage name to see the corresponding stage output as shown below.


On the Jenkins server, you can see a new branch called “jenkins” is now created for your repository.

# git branch -a
* master
  remotes/origin/HEAD -> origin/master
Thank you! for visiting LookLinux.

If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website To become an author at Look Linux Submit Article. Stay connected to Facebook.

About the author


Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Comment