开发者

Build fail success environment variable

I was hoping to know if there is a way to run a particular script, if and on开发者_如何转开发ly if the build is successful. So if the build fails the script doesn't run.

Please and thank you.


You have several options.

  • Easiest: you have a free-style software project -- just create an addition build step at the end of your build. The step will not be executed if one of your previous step fails. I don't know how it behaves if your build is unstable.

  • Also easy: You have a Maven project: create a post build step (Steps to run after mvn build). You have the options to let these post build steps run on successful, successful + unstable, or always.

  • Create another job for your script and trigger it with the parametrized trigger plugin. This plugin gives you the most flexibility.

Hope that helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜