0
点赞
收藏
分享

微信扫一扫

jenkins停止僵尸作业Click here to forcibly terminate running steps

现象

job执行完成后没有退出,而且不能停止

解决

jenkins停止僵尸作业Click here to forcibly terminate running steps_jenkins停止僵尸作业
jenkins停止僵尸作业Click here to forcibly terminate running steps_运维_02
jenkins停止僵尸作业Click here to forcibly terminate running steps_运维_03

Jenkins.instance.getItemByFullName("job名")
.getBuildByNumber()
.finish(
hudson.model.Result.ABORTED,
new java.io.IOException("Aborting build")
);


举报
0 条评论