简体   繁体   English

如何将Maven框架与Jenkins集成

[英]How to integrate maven framework with Jenkins

In order to integrate and run the Selenium Maven project on Jenkins 2.73.3 , I set the option(s) as the following images: 为了在Jenkins 2.73.3上集成并运行Selenium Maven项目,我将选项设置为以下图像:

“构建”配置

Notice Goals and options with clean install ; 注意Goals and options clean install Goals and options ; nothing else selected/checked, but Enable triggering of downstream projects . 没有其他选择/选中,而是Enable triggering of downstream projects

Maven配置

Notice Install automatically is unchecked. 注意未选中“ Install automatically

Jenkins project built successfully without opening any browser that shows any activity. Jenkins项目成功构建,而没有打开任何显示任何活动的浏览器。

Please, let me know if there is/are any project setting(s) to solve this issue; 请让我知道是否有任何项目设置可以解决此问题; ie: can we see the Web application run on browser as it does when it's run by the Maven project. 即:我们能否看到Web应用程序在浏览器上运行,就像在由Maven项目运行时一样。

You are using Jenkins from services means you are using installable Jenkins version which not allow opening of any UI invocation. 您从服务中使用Jenkins意味着您正在使用可安装的Jenkins版本,该版本不允许打开任何UI调用。

You need to use jenkins.war 您需要使用jenkins.war

You can download war from below URL: 您可以从以下URL下载战争:

https://updates.jenkins-ci.org/download/war/ https://updates.jenkins-ci.org/download/war/

Use below command to start Jenkins server 使用以下命令启动Jenkins服务器

java -jar jenkins.war --httpPort=9090

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

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