简体   繁体   English

Gitlab CI runner 如何知道构建失败

[英]How could the Gitlab CI runner knows the build failed

CI runner - Ubuntu CI 跑步者 - Ubuntu
Executor - shell执行器 - 外壳

somebody just asked me有人刚刚问我
How could the Gitlab CI runner knows the build failed ? Gitlab CI runner 如何知道构建失败?

I mean我的意思是
like my java project, sometimes the CI runner failed caused by compile error.就像我的java项目一样,有时由于编译错误导致CI runner失败。
But how did the runner know there was an error happened ?但是跑步者怎么知道发生了错误?

Is that because runner caught some exception from the shell ?那是因为 runner 从 shell 中捕获了一些异常吗?

thanks谢谢

我想.gitlab-ci.yml脚本中的 build 命令返回的退出状态不是零。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM