最新 Windows 版本的 Jenkins 安装

公元2020年 公历闰年,共366天,52周零2天。

2020年闰四月,中华人民共和国成立71周年,国庆节与中秋节是同一天。

2020年在中国武汉城市新型冠状病毒感染的肺炎疫情大爆发,党中央、国务院高度重视,及时作出防控部署,有关部门和地方采取一系列措施,全国上下众志成城、攻坚克难防治病毒的扩散,党中央、国务院通知延长春节假期,都老老实实呆家里不出门。公司也通知了在家远程办公,没事就折腾安装最新 Windows 版本的 Jenkins 体验一下。

最新版本 2.204.2jenkins0203_1 jenkins0203_2 jenkins0203_3 jenkins0203_4 jenkins0203_5 jenkins0203_6

很有诗意哈,肺炎疫情的爆发下,继续激情饱满

最新版本 2.204.2 安装完成,执行启动怎么就一直等待状态,启动不了啊?

启动指令如下:

D:\Jenkins>java -jar jenkins.war --httpPort=18080

重启也不行吗,我貌似也遇到过这种情况,刷新下试试

重新启动过了,一样的状态,而且我下载 war 包,放在 tomcat 服务里启动服务也一样的状态,好奇怪?

日志显示已经启动成功了(ready)?看看浏览器的控制台是否有报错之类的。

完整的日志

D:\Jenkins>java -jar jenkins.war --httpPort=18080
Running from: D:\Jenkins\jenkins.war
webroot: $user.home/.jenkins
2020-02-04 03:03:26.317+0000 [id=1] INFO org.eclipse.jetty.util.log.Log#initialized: Logging initialized @3122ms to org.eclipse.jetty.util.log.JavaUtilLog
2020-02-04 03:03:26.578+0000 [id=1] INFO winstone.Logger#logInternal: Beginning extraction from war file
2020-02-04 03:03:26.697+0000 [id=1] WARNING o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath
2020-02-04 03:03:26.839+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: jetty-9.4.z-SNAPSHOT; built: 2019-05-02T00:04:53.875Z; git: e1bc35120a6617ee3df052294e433f3a25ce7097; jvm 1.8.0_144-b01
2020-02-04 03:03:29.875+0000 [id=1] INFO o.e.j.w.StandardDescriptorProcessor#visitServlet: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
2020-02-04 03:03:30.131+0000 [id=1] INFO o.e.j.s.s.DefaultSessionIdManager#doStart: DefaultSessionIdManager workerName=node0
2020-02-04 03:03:30.134+0000 [id=1] INFO o.e.j.s.s.DefaultSessionIdManager#doStart: No SessionScavenger set, using defaults
2020-02-04 03:03:30.183+0000 [id=1] INFO o.e.j.server.session.HouseKeeper#startScavenging: node0 Scavenging every 600000ms
2020-02-04 03:03:31.346+0000 [id=1] INFO hudson.WebAppMain#contextInitialized: Jenkins home directory: C:\Users\simon.yin.jenkins found at: $user.home/.jenkins
2020-02-04 03:03:31.802+0000 [id=1] INFO o.e.j.s.handler.ContextHandler#doStart: Started w.@5a4e19{Jenkins v2.204.2,/,file:///C:/Users/simon.yin/.jenkins/war/,AVAILABLE}{C:\Users\simon.yin.jenkins\war}
2020-02-04 03:03:31.879+0000 [id=1] INFO o.e.j.server.AbstractConnector#doStart: Started ServerConnector@12fad11{HTTP/1.1,[http/1.1]}{0.0.0.0:18080}
2020-02-04 03:03:31.882+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: Started @8689ms
2020-02-04 03:03:31.887+0000 [id=20] INFO winstone.Logger#logInternal: Winstone Servlet Engine v4.0 running: controlPort=disabled
2020-02-04 03:03:34.297+0000 [id=27] INFO jenkins.InitReactorRunner$1#onAttained: Started initialization
2020-02-04 03:03:34.604+0000 [id=32] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins
2020-02-04 03:03:39.754+0000 [id=25] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
2020-02-04 03:03:39.766+0000 [id=27] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins
2020-02-04 03:03:39.783+0000 [id=27] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
2020-02-04 03:03:40.727+0000 [id=31] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
2020-02-04 03:03:40.780+0000 [id=45] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$0: Started Download metadata
2020-02-04 03:03:40.812+0000 [id=45] INFO hudson.util.Retrier#start: Attempt #1 to do the action check updates server
2020-02-04 03:03:41.770+0000 [id=32] INFO o.s.c.s.AbstractApplicationContext#prepareRefresh: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@20fe94: display name [Root WebApplicationContext]; startup date [Tue Feb 04 11:03:41 CST 2020]; root of context hierarchy
2020-02-04 03:03:41.771+0000 [id=32] INFO o.s.c.s.AbstractApplicationContext#obtainFreshBeanFactory: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@20fe94]: org.springframework.beans.factory.support.DefaultListableBeanFactory@142dc94
2020-02-04 03:03:41.789+0000 [id=32] INFO o.s.b.f.s.DefaultListableBeanFactory#preInstantiateSingletons: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@142dc94: defining beans [authenticationManager]; root of factory hierarchy
2020-02-04 03:03:42.025+0000 [id=32] INFO o.s.c.s.AbstractApplicationContext#prepareRefresh: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@15adf0e: display name [Root WebApplicationContext]; startup date [Tue Feb 04 11:03:42 CST 2020]; root of context hierarchy
2020-02-04 03:03:42.026+0000 [id=32] INFO o.s.c.s.AbstractApplicationContext#obtainFreshBeanFactory: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@15adf0e]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1bc0f81
2020-02-04 03:03:42.027+0000 [id=32] INFO o.s.b.f.s.DefaultListableBeanFactory#preInstantiateSingletons: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1bc0f81: defining beans [filter,legacy]; root of factory hierarchy
2020-02-04 03:03:42.104+0000 [id=32] INFO jenkins.install.SetupWizard#init:




Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:

4ba33e1ce68d437c94d9406b4c89a28a

This may also be found at: C:\Users\simon.yin.jenkins\secrets\initialAdminPassword




是不是没有完成了向导呢?你可以试试直接访问 http://localhost:8080/jenkins/configure

完成向导操作了,显示如下:

你要填写你自己的地址啊,我上面那个只是个例子。你的可能是 http://localhost:8080/configure

我本地就是 localhost 服务 :blush:

换了一个老的版本,还是执行同样的启动指令,老版本启动成功,可以正常进入使用了。

那可能是个新版本的缺陷,可以在官方JIRA上搜索下。

最新 Windows 版本的 Jenkins 安装一直启动不了,怎么查都没有解决方案,网友说断网后启动,结构真就好了,能顺利启动进入配置了,这是什么梗啊。。。。。。。。