开发者

Jenkins / Hudson - Set delay time at build execution

It is possible to set the delay time 开发者_运维技巧when executing a jenkins build? Like when using p.ex:

http://host/jenkins/job/job_name/build?delay=100sec

But making it with a plugin. I dont know how to get this delay parameter and set it with another value.

Thanks a lot.


I think build parameters are stored as environment variables and if that's the case, then you should be able set them using some code like this:

build.getEnvironment(listener).put("delay", "250");

In your plugin, you would put this in the setUp method of a class that extends the BuildWrapper.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜