From e805be5e9c148aad3a89b118619b0915c7d7c2fa Mon Sep 17 00:00:00 2001 From: quicksilver Date: Thu, 10 Dec 2020 10:20:39 +0800 Subject: [PATCH] Show ccache statistics Signed-off-by: quicksilver --- .jenkins/modules/Build/Build.groovy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.jenkins/modules/Build/Build.groovy b/.jenkins/modules/Build/Build.groovy index c4f78b8546..14fd0b9cdd 100644 --- a/.jenkins/modules/Build/Build.groovy +++ b/.jenkins/modules/Build/Build.groovy @@ -6,7 +6,10 @@ timeout(time: 20, unit: 'MINUTES') { sh '. ./before-install.sh && unset http_proxy && unset https_proxy && ./check_cache.sh -l $GO_MOD_ARTFACTORY_URL --cache_dir=\$GOPATH/pkg/mod -f milvus-distributed-go-mod-cache.tar.gz || echo \"Go mod artfactory files not found!\"' } + // Zero the cache statistics (but not the configuration options) + sh 'ccache -z' sh '. ./scripts/before-install.sh && make install' + sh 'echo -e "===\n=== ccache statistics after build\n===" && ccache --show-stats' dir ("scripts") { withCredentials([usernamePassword(credentialsId: "${env.JFROG_CREDENTIALS_ID}", usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {