Execute Shell Script after post build in Jenkins

后端 未结 5 917
天涯浪人
天涯浪人 2020-12-04 23:39

I am trying to execute a shell script if either the build pass or fails after post-build in Jenkins. I cannot see this option in post build to execute some shell script exce

5条回答
  •  我在风中等你
    2020-12-04 23:53

    You should be able to do that with the Batch Task plugin.

    1. Create a batch task in the project.
    2. Add a "Invoke batch tasks" post-build option selecting the same project.

    An alternative can also be Post build task plugin.

提交回复
热议问题