如何从Jenkins启动JBoss? [英] How to start JBoss from Jenkins?
问题描述
有人知道在部署之前如何从Jenkins启动JBoss吗? 在部署之前,我需要检查Jboss是否正在运行.
Does someone know how start JBoss from Jenkins before deployment? I need to check if Jboss is running before deployment.
如果有人帮助解决此问题,我将不胜感激!
I will be grateful if someone helps with this issue!
好吧
我尝试遵循 Gerold Broser 的建议.
因此,我已经安装了JBoss管理插件和条件构建步骤插件.
So, I have installed JBoss management plugin and conditional build step plugin.
在那之后,在Manage Jenkins/Configure System/JBoss Managment Builder中-我添加了一个远程服务器.
After that in Manage Jenkins/Configure System/JBoss Managment Builder - I have added a remote server.
然后在Project/Configure/Build/Add build step/Conditional step(单个)中-我已经尝试过:
And in Project/Configure/Build/Add build step/Conditional step (single) - I have tried:
运行?布尔条件
令牌 pgrep -f jboss< /dev/null
Token pgrep -f jboss < /dev/null
评估失败不运行
Builder Jboss Management
Builder Jboss Management
操作-开始.
保存/应用
推荐答案
请参见
此插件允许在构建过程中管理JBoss Application Server.
This plugin allows to manage a JBoss Application Server during build procedure. 使用该插件,我们可以启动/停止JBoss AS. With the plugin we can start/stop JBoss AS. 要检查其是否正在运行,请参见如何检查JBoss是否在Unix服务器上运行?并有条件地进行部署: To check whether it's running see How to check if JBoss is running on Unix server? and to deploy conditionally: 使用有条件的BuildStep插件,然后将您选择的脚本变体添加到: Use the Conditional BuildStep Plugin and add the script variant of your choice to: 构建→ 有条件的步骤(单个)→跑步? 执行shell →命令 Build → Conditional step (single) → Run? Execute shell → Command 这篇关于如何从Jenkins启动JBoss?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!