Running a Post Build script when a Jenkins job is aborted

后端 未结 4 1749
执笔经年
执笔经年 2021-02-07 02:23

Is there a possible way / plugin that can run a post build script when a Jenkins job is aborted. I do see that the post build plugin provides an action to execute a set of scrip

4条回答
  •  伪装坚强ぢ
    2021-02-07 02:48

    This question is positively answered here.

    The Post Build Task plugin is run even if a job is aborted.

    Use it to search the log text for "Build was aborted" and you can specify a shell script to run.

    Works like a charm. :-)

提交回复
热议问题