Skip to content
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

YML能否配置构建失败的通知 #37

Open
LockheedQi opened this issue Apr 19, 2018 · 7 comments
Open

YML能否配置构建失败的通知 #37

LockheedQi opened this issue Apr 19, 2018 · 7 comments

Comments

@LockheedQi
Copy link

如果构建失败是否可以做一些自定义的操作呢

@yunheli
Copy link
Contributor

yunheli commented Apr 19, 2018

@LockheedQi 查看 condition isFinal 属性

@LockheedQi
Copy link
Author

是在YML中配置查看么...请问下有没有示例...

@yunheli
Copy link
Contributor

yunheli commented Apr 19, 2018

@yunheli
Copy link
Contributor

yunheli commented Apr 19, 2018

@LockheedQi https://github.com/FlowCI/flow-platform/blob/4a557dd19940876bc440dac5979aae2e4995ed88/platform-api/src/test/resources/yml/for_job_service_final_node.yml isFinal 属性就是 不管前面step执行成功失败都运行isFinal的step可以在这里处理

@LockheedQi
Copy link
Author

isFinal: true 是不是意味着下面shell的执行条件是构建成功,但是整个step一定会执行.不好意思我还是不是很理解~

@yunheli
Copy link
Contributor

yunheli commented Apr 19, 2018

@LockheedQi 你的yml之前的step不要改东西,之后再加个final step把这个step标记为isFinal,之后之前的step跑成功还是失败都会执行最后的那个step,你的自定义操作放在这里就行

@LockheedQi
Copy link
Author

好的明白了,我再试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants