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

本文介绍了如何在Mac上安装并配置Jenkins持续集成工具,包括环境准备、Jenkins安装步骤及启动方法,并提供了访问地址及初始管理员密码。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

【1】环境准备 java 1.8+

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

【2】安装jenkins

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

参考链接http://blog.youkuaiyun.com/fengshi_sh/article/details/50669754

$ brew install jenkins

macs-Mac-mini:~ mac$ java -version
java 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
==> Caveats
Note: When using launchctl the port will be 8080.

To have launchd start jenkins now and restart at login:
  brew services start jenkins
Or, if you don't want/need a background service you can just run:
  jenkins
==> Summary

【3】启动jenkens

$ jenkins

macs-Mac-mini:~ mac$ jenkins
Running from: /usr/local/Cellar/jenkins/2.89/libexec/jenkins.war
webroot: $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 660000ms
Jenkins 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(邮件)





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值