0
0
Jenkinsdevops~5 mins

Blue Ocean interface in Jenkins - Commands & Configuration

Choose your learning style9 modes available
Introduction
Jenkins Blue Ocean is a user-friendly interface that makes it easier to create and manage pipelines. It solves the problem of complex and hard-to-read pipeline views by showing a clear visual representation.
When you want to see your pipeline stages and progress in a simple visual way.
When you need to create or edit Jenkins pipelines without writing complex code.
When you want to quickly identify which part of your pipeline failed.
When you want to share pipeline status with your team in an easy-to-understand format.
When you want to manage multiple pipelines from a clean dashboard.
Commands
This command installs the Blue Ocean plugin in Jenkins to enable the Blue Ocean interface.
Terminal
jenkins-plugin-cli --plugins blueocean
Expected OutputExpected
Installing blueocean plugin Download complete Plugin blueocean installed successfully
Restart Jenkins to apply the Blue Ocean plugin installation and make the interface available.
Terminal
systemctl restart jenkins
Expected OutputExpected
No output (command runs silently)
Access the Blue Ocean interface URL to verify it is running and accessible.
Terminal
curl -u admin:admin http://localhost:8080/blue
Expected OutputExpected
<!DOCTYPE html> <html lang="en"> <head> <title>Blue Ocean</title> </head> <body> <h1>Blue Ocean Interface</h1> </body> </html>
-u - Provides username and password for authentication
Key Concept

If you remember nothing else from this pattern, remember: Blue Ocean makes Jenkins pipelines easy to visualize and manage with a clean, simple interface.

Common Mistakes
Trying to access Blue Ocean interface before installing the plugin
The interface won't be available without the plugin installed, so the URL will return an error.
Always install the Blue Ocean plugin first using the plugin CLI or Jenkins UI.
Not restarting Jenkins after plugin installation
Changes won't take effect until Jenkins is restarted, so Blue Ocean won't appear.
Restart Jenkins service after installing the plugin to activate Blue Ocean.
Summary
Install the Blue Ocean plugin to enable the new Jenkins interface.
Restart Jenkins to apply the plugin installation.
Access the Blue Ocean URL to view and manage pipelines visually.