简体   繁体   English

Jenkins / Hudson JBoss插件启动后要等待吗?

[英]Jenkins/Hudson JBoss Plugin wait after Startup?

I am starting the JBoss server through the Jenkins JBoss plugin. 我正在通过Jenkins JBoss插件启动JBoss服务器。 After that I am executing some Selenium tests through Ant target. 之后,我将通过Ant目标执行一些Selenium测试。 Some of the first Selenium tests fail due to timeout, I am suspecting that the Ant test target is executed right after the JBoss has started, and the server has not properly finished the startup. 一些最初的Selenium测试由于超时而失败,我怀疑Ant测试目标是在JBoss启动后立即执行的,并且服务器没有正确完成启动。 Starting the server takes approximately 2 minutes. 启动服务器大约需要2分钟。 Is there a way to set a wait time after startup? 有没有一种方法可以设置启动后的等待时间?

Well, you could just add a sleep command in the Ant target. 好吧,您可以在Ant目标中添加一个sleep命令。 Would look something like this: 看起来像这样:

<sleep milliseconds="10"/>

See the doc here: http://ant.apache.org/manual/Tasks/sleep.html 在此处查看文档: http : //ant.apache.org/manual/Tasks/sleep.html

I got a similar situation and i resolve it by monitoring the server.log. 我遇到了类似的情况,可以通过监视server.log来解决。 You can find my blog post about this issue. 您可以找到有关此问题的我的博客文章。 hope this help. 希望有帮助。 =) =)

Linux – Wait until a specific pattern is written on log using tail and sed Linux –等待直到使用tail和sed在日志中写入特定模式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM