[英]Can Jenkins issue a “maven jboss-as:deploy” on my project?
I am trying to use Jenkins and Selenium for CI with my Spring Project that I will be running in AS7. 我试图在将要在AS7中运行的Spring Project中将Jenkins和Selenium用于CI。
I would like to know if I can get Jenkins to issue a "maven jboss-as:deploy" command line on my project to deploy it to my AS7 server. 我想知道是否可以让Jenkins在项目上发出“行家jboss-as:deploy”命令行,以将其部署到AS7服务器上。
Can someone please let me know if this can be done.. 有人可以让我知道是否可以这样做。
No need to involve Jenkins here. 无需让詹金斯参与其中。 Just add the jboss-as:deploy
plugin to your pom.xml, bound to the pre-integration-test
phase of your build. 只需将jboss-as:deploy
插件添加到pom.xml中即可,该插件已绑定到构建pre-integration-test
阶段。 Then when you run mvn install
(either locally or on Jenkins), your war will be deployed to the AS7 server. 然后,当您运行mvn install
(在本地或在Jenkins上)时,您的战争将被部署到AS7服务器上。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.