当jenkins作为Windows服务运行时,无法成功构建jenkins作业 . 这些是我遵循的步骤 -

1)从cmd运行java -jar jenkins.war

2)导航到管理jenkins下的“作为Windows服务安装”并在services.msc下创建jenkins服务 .

3)关闭cmd(最初运行jenkins war文件)

4)创建了一个maven项目,并尝试从本地pom位置以及位桶中获取代码 .

5)通过干净的安装目标和选项执行

结果 - Build 不稳定 . 浏览器没有启动,测试失败 .

任何帮助非常感谢 .

Results when build with code supplied from local pom file
Results :

Tests in error: 
  Then Login is successful(Scenario: Verify that login is successful with valid username and password): Expected condition failed: waiting for text ('DASHBOARD') to be present in element found by By.id: menutitle (tried for 10 second(s) with 3 SECONDS interval)(..)
  Scenario: Verify that login is successful with valid username and password: Expected condition failed: waiting for text ('DASHBOARD') to be present in element found by By.id: menutitle (tried for 10 second(s) with 3 SECONDS interval)(..)

Tests run: 4, Failures: 0, Errors: 2, Skipped: 0

[ERROR] There are test failures.

Please refer to C:\Users\rajeshg\IdeaProjects\Test_analysis\target\surefire-reports for the individual test results.
[JENKINS] Recording test results
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ NxTier ---
[INFO] Building jar: C:\Users\rajeshg\IdeaProjects\Test_analysis\target\NxTier-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ NxTier ---
[INFO] Installing C:\Users\rajeshg\IdeaProjects\Test_analysis\target\NxTier-1.0-SNAPSHOT.jar to C:\WINDOWS\system32\config\systemprofile\.m2\repository\aBILLity\NxTier\1.0-SNAPSHOT\NxTier-1.0-SNAPSHOT.jar
[INFO] Installing C:\Users\rajeshg\IdeaProjects\Test_analysis\pom.xml to C:\WINDOWS\system32\config\systemprofile\.m2\repository\aBILLity\NxTier\1.0-SNAPSHOT\NxTier-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 41.212 s
[INFO] Finished at: 2016-12-16T13:58:55+00:00
[INFO] Final Memory: 27M/311M
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving C:\Users\rajeshg\IdeaProjects\Test_analysis\pom.xml to aBILLity/NxTier/1.0-SNAPSHOT/NxTier-1.0-SNAPSHOT.pom
[JENKINS] Archiving C:\Users\rajeshg\IdeaProjects\Test_analysis\target\NxTier-1.0-SNAPSHOT.jar to aBILLity/NxTier/1.0-SNAPSHOT/NxTier-1.0-SNAPSHOT.jar
channel stopped
Finished: UNSTABL