pipeline

最后更新于:2022-04-02 02:58:25

[TOC] ## pipeline 构建
pipeline 架子 ``` pipeline { agent any stages { stage('代码checkout') { steps { echo "------------" } } stage ("静态检查") { steps { echo "------------" } } stage ("代码编译") { steps { echo "------------" } } stage ("单元测试") { steps { echo "------------" } } stage ("打包") { steps { echo "------------" } } stage ("冒烟测试") { steps { echo "------------" } } stage ("集成测试") { steps { echo "------------" } } stage ("基准性能测试") { steps { echo "------------" } } } post { always { echo "------------" } success { echo "------------" } failure { echo "------------" } unstable { echo "------------" } } } ```

构建效果 ![](blob:https://www.kancloud.cn/e32ec43c-7acc-43ba-b1ab-a2ed02f19c4c) Blue Ocean 的效果 ![](blob:https://www.kancloud.cn/2ecea506-fa76-4625-a47a-81736101b352) ##
';