【持续集成CI】mac系统下安装jenkins环境

来源:互联网 发布:爱情的期限dj网络歌手 编辑:程序博客网 时间:2024/06/05 03:38

【1】环境准备 java 1.8+

下载链接http://www.cr173.com/mac/122803.html#down-link

【2】安装jenkins

参考链接http://www.jianshu.com/p/eb56d34524b3

参考链接http://blog.csdn.net/fengshi_sh/article/details/50669754

$ brew install jenkins

macs-Mac-mini:~ mac$ java -versionjava version "1.8.0_152"Java(TM) SE Runtime Environment (build 1.8.0_152-b16)Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)macs-Mac-mini:~ mac$ brew install jenkins==> Downloading http://mirrors.jenkins.io/war/2.89/jenkins.war==> Downloading from http://mirrors.tuna.tsinghua.edu.cn/jenkins/war/2.89/jenkin######################################################################## 100.0%==> jar xvf jenkins.war==> CaveatsNote: When using launchctl the port will be 8080.To have launchd start jenkins now and restart at login:  brew services start jenkinsOr, if you don't want/need a background service you can just run:  jenkins==> Summary

【3】启动jenkens

$ jenkins

macs-Mac-mini:~ mac$ jenkinsRunning from: /usr/local/Cellar/jenkins/2.89/libexec/jenkins.warwebroot: $user.home/.jenkins十一月 10, 2017 3:04:37 下午 Main deleteWinstoneTempContents警告: Failed to delete the temporary Winstone file /var/folders/hj/jd302kg11p16gwpwfw8m3dc80000gn/T/winstone/jenkins.war十一月 10, 2017 3:04:38 下午 org.eclipse.jetty.util.log.Log initialized信息: Logging initialized @1097ms to org.eclipse.jetty.util.log.JavaUtilLog十一月 10, 2017 3:04:38 下午 winstone.Logger logInternal信息: Beginning extraction from war file十一月 10, 2017 3:04:39 下午 org.eclipse.jetty.server.handler.ContextHandler setContextPath警告: Empty contextPath十一月 10, 2017 3:04:39 下午 org.eclipse.jetty.server.Server doStart信息: jetty-9.4.z-SNAPSHOT十一月 10, 2017 3:04:40 下午 org.eclipse.jetty.webapp.StandardDescriptorProcessor visitServlet信息: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet十一月 10, 2017 3:04:40 下午 org.eclipse.jetty.server.session.DefaultSessionIdManager doStart信息: DefaultSessionIdManager workerName=node0十一月 10, 2017 3:04:40 下午 org.eclipse.jetty.server.session.DefaultSessionIdManager doStart信息: No SessionScavenger set, using defaults十一月 10, 2017 3:04:40 下午 org.eclipse.jetty.server.session.HouseKeeper startScavenging信息: Scavenging every 660000msJenkins home directory: /Users/mac/.jenkins found at: $user.home/.jenkins十一月 10, 2017 3:04:43 下午 org.eclipse.jetty.server.handler.ContextHandler doStart信息: Started w.@62dae245{/,file:///Users/mac/.jenkins/war/,AVAILABLE}{/Users/mac/.jenkins/war}十一月 10, 2017 3:04:43 下午 org.eclipse.jetty.server.AbstractConnector doStart信息: Started ServerConnector@5217f3d0{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}十一月 10, 2017 3:04:43 下午 org.eclipse.jetty.server.Server doStart信息: Started @6364ms十一月 10, 2017 3:04:43 下午 winstone.Logger logInternal信息: Winstone Servlet Engine v4.0 running: controlPort=disabled十一月 10, 2017 3:04:43 下午 jenkins.InitReactorRunner$1 onAttained信息: Started initialization十一月 10, 2017 3:04:44 下午 jenkins.InitReactorRunner$1 onAttained信息: Listed all plugins十一月 10, 2017 3:04:45 下午 jenkins.InitReactorRunner$1 onAttained信息: Prepared all plugins十一月 10, 2017 3:04:45 下午 jenkins.InitReactorRunner$1 onAttained信息: Started all plugins十一月 10, 2017 3:04:45 下午 jenkins.InitReactorRunner$1 onAttained信息: Augmented all extensions十一月 10, 2017 3:04:46 下午 jenkins.InitReactorRunner$1 onAttained信息: Loaded all jobs十一月 10, 2017 3:04:46 下午 hudson.model.AsyncPeriodicWork$1 run信息: Started Download metadata十一月 10, 2017 3:04:47 下午 jenkins.slaves.DeprecatedAgentProtocolMonitor initializerCheck警告: This Jenkins instance uses deprecated Remoting protocols: CLI-connect,CLI2-connect,JNLP-connect,JNLP2-connectIt may impact stability of the instance. If newer protocol versions are supported by all system components (agents, CLI and other clients), it is highly recommended to disable the deprecated protocols.十一月 10, 2017 3:04:47 下午 jenkins.InitReactorRunner$1 onAttained信息: Completed initialization十一月 10, 2017 3:04:48 下午 org.springframework.context.support.AbstractApplicationContext prepareRefresh信息: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@76cca103: display name [Root WebApplicationContext]; startup date [Fri Nov 10 15:04:48 CST 2017]; root of context hierarchy十一月 10, 2017 3:04:48 下午 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory信息: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@76cca103]: org.springframework.beans.factory.support.DefaultListableBeanFactory@7555cccd十一月 10, 2017 3:04:48 下午 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@7555cccd: defining beans [authenticationManager]; root of factory hierarchy十一月 10, 2017 3:04:48 下午 org.springframework.context.support.AbstractApplicationContext prepareRefresh信息: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@4252b7a1: display name [Root WebApplicationContext]; startup date [Fri Nov 10 15:04:48 CST 2017]; root of context hierarchy十一月 10, 2017 3:04:48 下午 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory信息: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@4252b7a1]: org.springframework.beans.factory.support.DefaultListableBeanFactory@558c5633十一月 10, 2017 3:04:48 下午 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@558c5633: defining beans [filter,legacy]; root of factory hierarchy十一月 10, 2017 3:04:48 下午 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:152939de627f4d85a0c0c2a072bea7**这里的初始密码登录时需要This may also be found at: /Users/mac/.jenkins/secrets/initialAdminPassword***************************************************************************************************************************************************************************************十一月 10, 2017 3:05:02 下午 hudson.model.UpdateSite updateData信息: Obtained the latest update center data file for UpdateSource default十一月 10, 2017 3:05:02 下午 hudson.model.UpdateSite updateData信息: Obtained the latest update center data file for UpdateSource default十一月 10, 2017 3:05:02 下午 hudson.UDPBroadcastThread run信息: Cannot listen to UDP port 33,848, skipping: java.net.SocketException: Can't assign requested address十一月 10, 2017 3:05:02 下午 hudson.WebAppMain$3 run信息: Jenkins is fully up and running十一月 10, 2017 3:05:02 下午 hudson.model.DownloadService$Downloadable load信息: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller十一月 10, 2017 3:05:05 下午 hudson.model.DownloadService$Downloadable load信息: Obtained the updated data file for hudson.tools.JDKInstaller十一月 10, 2017 3:05:05 下午 hudson.model.AsyncPeriodicWork$1 run信息: Finished Download metadata. 18,276 ms

【4】打开http://localhost:8080/


管理插件(系统管理–管理插件)

  • Subversion Plug-in(svn)
  • Xcode integration(Xcode)
  • Environment Injector Plugin(自定义全局变量)
  • Email Extension Plugin(邮件)





原创粉丝点击