Jenkins在Mac平台安裝

安裝Jenkins 

  • http://jenkins-ci.org/網站下載jenkins.war
  • 在系統管理者的家目錄(例如/Users/admin)下建立一個目錄叫hudson, 將hudson.war放到這個目錄, 例如/Users/admin/hudson/hudson.war
  • 到$TOMCAT_INSTALL_DIR$/conf/Catalina/localhost/目錄下新增一個檔案名為hudson.xml, 檔案內容如下
        
<Context path="/hudson" docBase="/Users/admin/hudson/hudson.war" debug="0">

</Context>

launchd_wrapper.sh修改

export CATALINA_OPTS="-DHUDSON_HOME=/Users/admin/hudson -Xmx512m"
  • 重新啟動Tomcat Server 
  • 使用browser連到http://youripaddress:8080/hudson/, 看到以下畫面, 表示Hudson安裝成功
原文地址:https://www.cnblogs.com/qq78292959/p/2076717.html