失败哈德森构建与Groovy脚本 [英] Fail hudson build with groovy script
本文介绍了失败哈德森构建与Groovy脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有几个职位的建立,我对我的哈德森构建运行的操作。目前,他们的bash脚本,如果我想无法从他们biuld,我只返回一个非零值。有没有办法无法从其他脚本语言(如常规)构建?难道我只是写一个脚本,也返回非零?或者是有一个特别的插件需要启用这个?
I have a couple of post build actions that I run on my Hudson build. They are currently bash scripts, and if I want to fail the biuld from them, I just return a non-zero value. Is there a way to fail the build from another scripting language (such as groovy)? Do I just write a script that also returns non-zero? Or is there a particular plugin I need to enable this?
谢谢,
杰夫
推荐答案
插件Postbuild 好像是你需要什么,有一个名为方法 buildFailure()
这台构建结果要失败的。
The Groovy Postbuild Plugin seems to be what you need, and has a method called buildFailure()
which sets the build result to FAILURE.
这篇关于失败哈德森构建与Groovy脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文