快捷菜单
常用功能一站直达
更多功能请点顶栏「快捷菜单」





[toc]




1include:
2 - project: 'devops4/devops4-gitlablib-service'
3 ref: main
4 file:
5 - '/jobs/CI.yaml'
6 - '/jobs/CD.yaml'1workflow:
2 rules:
3 - if: $CI_PIPELINE_SOURCE == "web"
4 when: always
5 - if: $CI_COMMIT_BEFORE_SHA == "0000000000000000000000000000000000000000"
6 when: never
7 - when: always 1variables:
2 GIT_CHECKOUT: "false" ## 全局关闭作业代码下载
3 BUILD_SHELL: "sh -x build.sh" ## 构建命令
4 # TEST_SHELL: "mvn test " ## 测试命令
5 # ARTIFACT_PATH: "target/*jar" ## 制品路径
6 # TEST_REPORTS: "target/surefire-reports/TEST-*.xml" ##测试报告
7 RUNNER_TAG: "builder"
8 PROJECT_TYPE: "java"
9 DEPLOY_HOSTS: "192.168.1.121 192.168.1.122"
10 TARGET_DIR: "/opt"
11 RUN_TYPE: "CI"
12 PORT: "8888"1stages:
2 - build
3 - test
4 - pushartifact
5 - pullartifact
6 - deploy
7 - healthCheck 1pipelineInit:
2 extends:
3 - .pipelineInit
4
5cibuild:
6 extends:
7 - .cibuild
8
9# ciscan:
10# extends:
11# - .codescan
12
13pushartifact:
14 extends:
15 - .pushartifact
16
17pullartifact:
18 extends:
19 - .pullartifact
20
21# dockerbuild:
22# extends:
23# - .dockerbuild
24
25deploy:
26 extends:
27 - .deploy
28
29healthCheck:
30 extends:
31 - .healthCheck我的博客主旨:
🍀 微信二维码 x2675263825 (舍得), qq:2675263825。

🍀 微信公众号 《云原生架构师实战》

🍀 个人博客站点
http://47.97.48.237/ (即将上线域名:onedayxyy.cn)

🍀 语雀
https://www.yuque.com/xyy-onlyone

🍀 csdn https://blog.csdn.net/weixin_39246554?spm=1010.2135.3001.5421

🍀 知乎 https://www.zhihu.com/people/foryouone

好了,关于本次就到这里了,感谢大家阅读,最后祝大家生活快乐,每天都过的有意义哦,我们下期见!
日历 · 精选 · 友链 · 更多
如果内容对你有帮助,欢迎请我喝杯咖啡 ☕



One的公众号
爱折腾博客的小白