简体   繁体   English

无法从詹金斯部署到Jboss

[英]Unable to deploy from Jenkins to Jboss

We are unable to deploy our application from our BuildServer to our appliation server. 我们无法将应用程序从BuildServer部署到应用程序服务器。

This is the maven command we use in Jenkins: 这是我们在詹金斯中使用的maven命令:

clean install  jboss-as:deploy -Pjboss7 -Dmaven.test.skip=true

We have tried the following: 我们尝试了以下方法:

  • Confirmed we can telnet from our BuildServer to our appliation server 确认我们可以从BuildServer telnet到应用服务器
  • Upgrade Jboss maven plugin 升级Jboss Maven插件
  • Started Jboss (on our application server) with 启动Jboss(在我们的应用服务器上)

    $JBOSS_HOME/bin/standalone.sh -b 0.0.0.0 $ JBOSS_HOME / bin / standalone.sh -b 0.0.0.0

Jenkins seems to hang at the following point: INFO: JBoss Remoting version 3.2.12.GA Authenticating against security realm: ManagementRealm Jenkins似乎停留在以下几点:INFO:JBoss Remoting版本3.2.12.GA针对安全领域进行身份验证:ManagementRealm

Is the JBoss AS 7 working on the same machine as Jenkins? JBoss AS 7是否与Jenkins在同一台机器上工作?

Currently your binding your public interface to all network interfaces on the host machine (the -b command). 当前,您将公用接口绑定到主机上的所有网络接口(-b命令)。 You should also bind your management interface of the app server to a proper network interface (Jboss allows remote deployment only by the management interface). 您还应该将应用服务器的管理界面绑定到适当的网络界面(Jboss仅允许通过管理界面进行远程部署)。 You can do it in the $JBOSS_HOME/standalone/configuration/standalone.xml (or domain.xml for domain mode) file. 您可以在$JBOSS_HOME/standalone/configuration/standalone.xml (或对于域模式为domain.xml )文件中进行操作。 Find: 找:

and set the inet-address to the ip of the machine which hosts the application server. 并将inet-address设置为承载应用程序服务器的计算机的ip。 You can also use the -bmanagement switch to bind the management interface, as such: 您还可以使用-bmanagement开关来绑定管理界面,如下所示:

$JBOSS_HOME/bin/standalone.sh -bmanagement=192.168.100.10

You also stated, that you have a potential problem with authentication. 您还说过,身份验证存在潜在问题。 Please post your maven plugin configuration. 请发布您的Maven插件配置。 Note that the username and password you provide for the maven plugin should match the administrator user on JBoss (you can add him by choosing Management User in the $JBOSS_HOME/bin/add-user.sh promp). 请注意,您为maven插件提供的用户名和密码应与JBoss上的管理员用户匹配(您可以通过在$JBOSS_HOME/bin/add-user.sh选择“管理用户”来添加他)。 This is the most likely source of your problem - but it is hard to tell without any further information (for example something from the pom.xml file). 这是您问题最可能的根源-但如果没有其他信息(例如pom.xml文件中的信息),就很难分辨。

Also if the app server is working on the same machine as Jenkins, JBoss allows the "local user authentication" which basicaly checks if the call has originated from the same machine. 同样,如果应用服务器与Jenkins在同一台计算机上工作,则JBoss允许“本地用户身份验证”,该身份验证从根本上检查调用是否源自同一台计算机。

Additional source for network interface binding: https://docs.jboss.org/author/display/AS71/Command+line+parameters#Commandlineparameters-bindaddress 网络接口绑定的其他来源: https : //docs.jboss.org/author/display/AS71/Command+line+parameters#Commandlineparameters-bindaddress

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

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