Linux 搭建 Jenkins

來源:互聯網
上載者:User

Jenkins,是從Hudson fork出的一個開發分支,因與Oracle Hudson商標糾紛改名為Jenkins(詳見),Jenkins是基於Java開發的一種持續整合工具,用於監控秩序重複的工作,包括:軟體版本發布/測試的持續整合、外部調用執行工作的監控等。

1、 Jenkins 下載

Jenkins 下載網址: Download Jenkins

Jenkins 最新版本: jenkins_1.514_all.deb(Ubuntu/Debian), 或 jenkins.war(war包)

2、 Jenkins 安裝

(1) 安裝Tomcat, 請見我先前的部落格: Ubuntu 配置 Tomcat

(2) 安裝Maven,請見我先前的部落格: Linux 搭建 maven

(3) 拷貝下載的 jenkins.war 到 tomcat的webapps目錄下:

        sudo cp jenkins.war /opt/apache-tomcat-7.0.40/webapps/

3、 Jenkins 配置

(1) 開啟/etp/profile設定檔, 配置maven的工作目錄: sudo vi /etc/profile

(2) 添加maven工作目錄: export JENKINS_HOME=/opt/apache-tomcat-7.0.40/webapps/jenkins  如下:

            

(3) 使/etc/profile設定檔生效: source /etc/profile

4、 Jenkins 驗證

在瀏覽器裡,輸入網址: http://localhost:8080/jenkins/  顯示下面介面:

出現介面,表示安裝成功!

註: Android工程持續整合的自動化構建(ant + jenkins + svn/git),在後面會奉上,敬請關注本部落格 ^_^

參考推薦:

Jenkins(官方)

Hudson(官方)

Installing Jenkins on Ubuntu

Jenkins伺服器安裝與配置(推薦)

Jenkins "Hello World"

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.