检测Jenkins构建中止事件 [英] Detect Jenkins build abort event

查看:172
本文介绍了检测Jenkins构建中止事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在Builder插件中检测到Jenkins构建中止事件并执行优美的过程定稿?

Is it possible to detect Jenkins build abort event in Builder plugin and perform graceful process finalization?

这是我能够找到的唯一信息: https://wiki.jenkins-ci.org/display/JENKINS/Aborting+a+build

This is the only information I was able to find: https://wiki.jenkins-ci.org/display/JENKINS/Aborting+a+build

推荐答案

InterruptedException is thrown on job abort, so by catching it, it is possible to detect and handle job termination.

更多详细信息可以在此处找到.

More detailed information can be found here.

这篇关于检测Jenkins构建中止事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆