須要統計必定時間內,全部組員的代碼提交量,這樣gitstats就能實現這個需求 首選在jenkins後臺安裝gitstat sudo apt-get install gitstats,若是出現error:「Unable to locate package git」,主要是由於source list沒有相關對應的源文件,所以首選就須要apt-get update 進入jenkins頁面,而後點擊Manage Jenkins–》Manage Plugins,安裝HTML Publisher pluginhtml
新建一個jenkins project,把須要統計的代碼庫填寫在Source Code Management裏,而後新建Execute shell,gitstats ${WORKSPACE} result,最後publish html reports,以下圖所示:
git