Gitlab ci 如何找到工作';gitlab ci阶段的结果
我有一个gitlab ci管道,如下所示,有一个bash脚本Gitlab ci 如何找到工作';gitlab ci阶段的结果,gitlab-ci,Gitlab Ci,我有一个gitlab ci管道,如下所示,有一个bash脚本notify.sh,它将根据stage构建结果(成功或失败)发送不同的通知,目前我使用arg--result来控制逻辑,我为stagenotify(成功通知和失败通知)编写了两个作业并手动分配--result的值。是否有一种方法可以直接获取stagebuild结果(如stage\u build\u STATE),而不是在时使用语句 --- stages: - build - notify build: stage: build
notify.sh
,它将根据stage构建
结果(成功或失败)发送不同的通知,目前我使用arg--result
来控制逻辑,我为stagenotify
(成功通知和失败通知)编写了两个作业并手动分配--result
的值。是否有一种方法可以直接获取stagebuild
结果(如stage\u build\u STATE),而不是在时使用语句
---
stages:
- build
- notify
build:
stage: build
script:
- build something
success-notify:
stage: notify
script:
- bash notify.sh --result success
failed-notify:
stage: notify
script:
- bash notify.sh --result failed
when: on_failure