-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gitlab ci状态判断不正确 #36
Labels
bug
Something isn't working
Comments
这个目前确实是有问题。 |
也不能怪你,我现在用的是gitlab 14的版本,CI_JOB_STATUS这个变量的值不符合预期 notify_on_failure:
stage: notify
image: lddsb/drone-dingtalk-message:1.2.7
script:
- drone-dingtalk --build.status failure
when: on_failure
notify_on_success:
stage: notify
image: lddsb/drone-dingtalk-message:1.2.7
script:
- drone-dingtalk --build.status success
when: on_success |
很高兴你想到其他方式解决了这个问题 |
只是不太优雅 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用的是默认模板
https://raw.fastgit.org/lddsb/drone-dingtalk-message/master/tpls/gitlab-ci.tpl
当gitlab ci上一个任务执行失败时,仍然返回的是sucess
TPL_BUILD_STATUS的值获取不正确
关键代码
stage: notify
image: lddsb/drone-dingtalk-message:1.2.7
script:
- drone-dingtalk
when: always
The text was updated successfully, but these errors were encountered: