场景
创建一个安装了转轮的新虚拟机
触发(从另一个项目)运行的管道,该管道在这个新虚拟机上运行
如果上面的管道在新虚拟机上失败,则执行其他操作,或者失败。
问题
我正在使用GitLabs触发器API从一个项目运行管道,但是希望它能在这个新创建的虚拟机上运行。
将这些信息解析为GitLab API的最好方法是什么,或者像标记这样的东西是最好的方法吗?
.gitlab-ci.yml
stages:
- deploy to test
- test
- deploy to prod
Terraform Deploy To Test:
stage: deploy to test
s
在我们的gitlab服务器上设置CI构建的步骤中,我似乎找不到关于如何设置编译器警告检测的信息。示例生成输出:
[100%] Building CXX object somefile.cpp.o
/home/gitlab-runner/builds/XXXXXXX/0/group/project/src/somefile.cpp:14:2: warning: #warning ("This is a warning to test gitlab") [-Wcpp]
#warning("This is a warning to test gitlab")
^