Skip to content
代码片段 群组 项目
未验证 提交 77e3e745 编辑于 作者: ddavison's avatar ddavison
浏览文件

Use CI_MERGE_REQUEST_LABELS env var in undercoverage

上级 9559b94a
No related branches found
No related tags found
无相关合并请求
...@@ -594,8 +594,7 @@ rspec:undercoverage: ...@@ -594,8 +594,7 @@ rspec:undercoverage:
stage: post-test stage: post-test
needs: ["rspec:coverage"] needs: ["rspec:coverage"]
script: script:
- apt install -y jq - if [[ ",${CI_MERGE_REQUEST_LABELS}," == *",pipeline:skip-undercoverage,"* ]]; then
- if [[ $(curl "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/merge_requests/${CI_MERGE_REQUEST_IID}" | jq ".labels" | grep "pipeline:skip-undercoverage") ]]; then
echo "The 'pipeline:skip-undercoverage' label is set on the MR, exiting early."; echo "The 'pipeline:skip-undercoverage' label is set on the MR, exiting early.";
exit 0; exit 0;
else else
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册