当前位置:网站首页>Continuous delivery blue ocean application
Continuous delivery blue ocean application
2022-06-27 01:19:00 【51CTO】
Blue Ocean It provides a set of visual operation interfaces to help create 、 edit Pipeline Mission .
Blue Ocean characteristic :
- Pipeline editor : Used to create a continuous delivery pipeline throughout , It is an intuitive and visual pipeline editor .
- Pipeline visualization : Visual representation of convective waterline , Improve the clarity of the enterprise wide continuous delivery process .
- Pipeline diagnosis : Locate automation problems immediately , No need to continuously scan logs or follow multiple screens .
- Personalized dashboard : You can customize the dashboard , Only the pipeline related to itself is displayed .
Installation and startup Blue Ocean
Blue Ocean yes Jenkins One of the plug-ins , In system management -> Plug-in management ," Optional plug-ins " Mid search "Blue Ocean" You can see the following results :
 Continuous delivery -Blue Ocean application _ unit testing](/img/ea/4f1f0afcebe2234e205f0f81d3328e.png)
Choose Blue Ocean, And then click Install Button to install . Restart after installation is complete Jenkins process , And then you can go in Jenkins Page Blue Ocean The icon . single click Blue Ocean The icon starts Blue Ocean.
stay Blue Ocean Created in Pipeline
stay Blue Ocean Middle click New Pipeline Create a new pipeline . establish Pipeline
 Continuous delivery -Blue Ocean application _ Graphical _02](/img/08/eacd9c4b2c99a5bfdfd3197d395559.png)
If your warehouse root directory has Jenkinsfile, Start the first build process directly . If the warehouse does not contain Jenkinsfile The open pipeline-editor, Graphical editing workflow . Blue Ocean Graphical editing workflow
 Continuous delivery -Blue Ocean application _ unit testing _03](/img/b6/cf2c8eb4ff762526a754f61f9e3b1f.png)
After editing, it will generate Jenkinsfile, And submit it to your code base root directory , You can choose to submit to master Branch or commit to a newly created Branch . After the submission is successful, a complete build process will begin . Blue Ocean establish Pipeline Commit code base & function
 Continuous delivery -Blue Ocean application _git_04](/img/70/396ecb365d52acf0f0f935c347dacb.png)
from Blue Ocean Generated Jenkinsfile The code will be saved in the project Github In the code base , You can edit it later 、 modify . Blue Ocean Generated Jenkinsfile Code
stay Blue Ocean Run build and view in
Run build
stay Blue Ocean Open in Pipeline Mission , single click Run Button to run the task directly . Blue Ocean Run in Pipeline Mission
 Continuous delivery -Blue Ocean application _ unit testing _05](/img/33/7e57e41d1086e5c70d718e8927d78c.png)
View the task progress view
Running Pipeline During the task, you can click the task number to enter the task details view to view the graphical progress . Blue Ocean Task progress query
 Continuous delivery -Blue Ocean application _ Graphical _06](/img/dc/83061b10b7d2416dd40b18e98a1cf7.png)
View log view
Click the corresponding work node in the task , You can query the log details during task operation . This log information can be used for debugging tasks , Especially when the task goes wrong , Log details can help check the cause of the task error . Task log
 Continuous delivery -Blue Ocean application _ unit testing _07](/img/1b/c6b284a8bfd731e8ecd3f676ec069d.jpg)
Use Blue Ocean Unit test and result display
For projects that contain unit tests ,Blue Ocean You can run unit tests and show the results . The following is used java Examples of single test items .
Pipeline Code implementation
pipeline{
agent {
label 'master'
}
stages{
stage('iTest Source code ') {
steps {
sh 'mkdir -p iTest'
dir("iTest"){
git branch:'master', url:'[email protected]:princeqjzh/iTest.git'
}
}
}
stage(' structure + Single measurement ') {
steps {
sh '''
cd iTest
mvn clean install test
'''
}
}
stage(' Release test records ') {
steps {
junit '**/*.xml'
}
}
}
}
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
- 26.
- 27.
- 28.
- 29.
- 30.
- 31.
Single test results show
After the task runs , Get into Tests View test run results Single test results show
 Continuous delivery -Blue Ocean application _ Graphical _08](/img/91/ae22d82c29b309e05b607d3dc8330f.png)
Blue Ocean It provides more fun for developers Jenkins Usage mode , Build from the foundation , A new 、 Modern style user interface , Help teams of any size achieve continuous delivery .
边栏推荐
猜你喜欢
![[graduation season] role conversion](/img/4e/aa763455da974d9576a31568fc6625.jpg)
[graduation season] role conversion

Solve the problem that stc8g1k08 program cannot run and port configuration

XSS attack notes (Part 1)

Online text digit recognition list summation tool

Bootstrapblazor + FreeSQL actual combat chart usage (2)

CLIP:从自然语言监督中学习可迁移的视觉模型

Flink 实战问题(七):No Watermark(Watermarks are only available EventTime is used)

可视化介绍 Matplotlib 和 Plotnine

用代码生成流程图,Markdown的使用方法

Unable to create a folder to save the sketch: MKDIR sketch
随机推荐
Timing mechanism of LwIP
memcached基础1
Memcached foundation 1
One click acceleration of Sony camera SD card file copy operation, file operation batch processing tutorial
LeetCode 142. Circular linked list II
ML:机器学习工程化之团队十大角色背景、职责、产出物划分之详细攻略
The most difficult 618 in history, TCL won the first place in both jd.com and tmall.com shares in the TV industry
微博评论高性能高可用架构
每日刷题记录 (五)
Bootstrapblazor + FreeSQL actual combat chart usage (2)
XSS attack notes (Part 1)
UVM中config_db机制的使用方法
持续交付-Blue Ocean 应用
buuctf-pwn write-ups (6)
ESP32-添加多目录的自定义组件
memcached基础4
IIS 部署静态网站和 FTP 服务
XSS notes (Part 2)
Esp32 add multi directory custom component
Law of Large Numbers