2019/9/15

Jenkins練習


  • 甚麼是CI/CD
  • 參考步驟
  • 工作之餘了解一下Jenkins的好處
  • Maven+Tomcat+Subversion
    • 先在本機安裝VisualSVN , 建立帳號、密碼、URL
    • 建立一個Maven專案,並且將SVN指向安裝的檔案庫
    • 安裝Tomcat 9 , 並確認可將maven專案成功啟動 , 建立一個tomcat管理員帳密
      • jndi問題插曲
        • 想要建立一個global jndi dbcp 可在../tomcat/conf/context.xml內容加入設定

        • 程式應用 , 因為tomcat並非常用的server , 要用
          • # java:comp/env/jdbc/TESTDB
      • tomcat帳號權限不足的問題 
        • tomcat帳號權限
        • manager-gui - allows access to the HTML GUI and the status pages
        • manager-script - allows access to the text interface and the status pages
        • manager-jmx - allows access to the JMX proxy and the status pages
        • manager-status - allows access to the status pages only
      • 因為專案有應用properties , 打包war檔時要加一段設定
        • <resources>
             <resource>
                <directory>src</directory>
             </resource>
          </resources>
    • 簡單設定每五分鐘部屬一次WAR , 這個 tomcat plugin其實跟heroku官方使用的相同




沒有留言:

張貼留言

test2