1. 須要按期從svn 或者git拉取指定代碼 2. 對代碼庫內部門模塊進行隔離或者刪除,不參與檢測 3. 爲小組內人員按期發送郵件, 4. 可分配具體bug 給具體小組內人員
1. sonar搭建能夠參考 [以前文章:sonarqube For PHP 代碼質量管理][1] 2. jenkins環境搭建:略過 3. jenkins 插件安裝:略過 - SonarQube Scanner for Jenkins - Localization: Chinese (Simplified) - Email Extension Template Plugin
cd /var/lib/jenkins/workspace/sonar_svn_trunk/cctrunk rm -rf assets rm -rf css rm -rf js rm -rf template rm -rf images rm favicon.ico rm robots.txt cd /var/lib/jenkins/workspace/sonar_svn_trunk/trunk/app/libraries ls |grep -v platform | xargs rm -rf cd /var/lib/jenkins/workspace/sonar_svn_trunk/trunk/app rm -rf third_party rm -rf views rm -rf language find . -name 'index.html' | xargs rm -rf find . -name '*.pem' | xargs rm -rf find . -name '*.conf' | xargs rm -rf sonaradmin@es_master:/usr/local/sonar/sonarqube-7.3/bin/linux-x86-64$ ./sonar.sh start