From d5613794858cafa8ca31d5b680af1651dcc079ba Mon Sep 17 00:00:00 2001 From: quicksilver Date: Mon, 22 Mar 2021 18:27:55 +0800 Subject: [PATCH] Remove go mod cache in Jenkins CI Signed-off-by: quicksilver --- .jenkins/modules/Build/Build.groovy | 2 -- build/ci/jenkins/pod/test-env.yaml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.jenkins/modules/Build/Build.groovy b/.jenkins/modules/Build/Build.groovy index adb37bb115..ed31471883 100644 --- a/.jenkins/modules/Build/Build.groovy +++ b/.jenkins/modules/Build/Build.groovy @@ -3,7 +3,6 @@ timeout(time: 20, unit: 'MINUTES') { sh '. ./scripts/before-install.sh && ./scripts/check_cache.sh -l $CCACHE_ARTFACTORY_URL --cache_dir=\$CCACHE_DIR -f ccache-\$OS_NAME-\$BUILD_ENV_IMAGE_ID.tar.gz || echo \"Ccache artfactory files not found!\"' sh '. ./scripts/before-install.sh && ./scripts/check_cache.sh -l $GO_CACHE_ARTFACTORY_URL --cache_dir=\$(go env GOCACHE) -f go-cache-\$OS_NAME-\$BUILD_ENV_IMAGE_ID.tar.gz || echo \"Go cache artfactory files not found!\"' sh '. ./scripts/before-install.sh && ./scripts/check_cache.sh -l $THIRDPARTY_ARTFACTORY_URL --cache_dir=$CUSTOM_THIRDPARTY_PATH -f thirdparty-download.tar.gz || echo \"Thirdparty artfactory files not found!\"' - sh '. ./scripts/before-install.sh && ./scripts/check_cache.sh -l $GO_MOD_ARTFACTORY_URL --cache_dir=\$GOPATH/pkg/mod -f milvus-distributed-go-mod-\$(md5sum go.mod).tar.gz || echo \"Go mod artfactory files not found!\"' // Zero the cache statistics (but not the configuration options) sh 'ccache -z' @@ -15,6 +14,5 @@ timeout(time: 20, unit: 'MINUTES') { sh '. ./scripts/before-install.sh && ./scripts/update_cache.sh -l $CCACHE_ARTFACTORY_URL --cache_dir=\$CCACHE_DIR -f ccache-\$OS_NAME-\$BUILD_ENV_IMAGE_ID.tar.gz -u ${USERNAME} -p ${PASSWORD}' sh '. ./scripts/before-install.sh && ./scripts/update_cache.sh -l $GO_CACHE_ARTFACTORY_URL --cache_dir=\$(go env GOCACHE) -f go-cache-\$OS_NAME-\$BUILD_ENV_IMAGE_ID.tar.gz -u ${USERNAME} -p ${PASSWORD}' sh '. ./scripts/before-install.sh && ./scripts/update_cache.sh -l $THIRDPARTY_ARTFACTORY_URL --cache_dir=$CUSTOM_THIRDPARTY_PATH -f thirdparty-download.tar.gz -u ${USERNAME} -p ${PASSWORD}' - sh '. ./scripts/before-install.sh && ./scripts/update_cache.sh -l $GO_MOD_ARTFACTORY_URL --cache_dir=\$GOPATH/pkg/mod -f milvus-distributed-go-mod-\$(md5sum go.mod).tar.gz -u ${USERNAME} -p ${PASSWORD}' } } diff --git a/build/ci/jenkins/pod/test-env.yaml b/build/ci/jenkins/pod/test-env.yaml index 17f0f9a1b4..f19dd8c183 100644 --- a/build/ci/jenkins/pod/test-env.yaml +++ b/build/ci/jenkins/pod/test-env.yaml @@ -7,7 +7,7 @@ metadata: spec: containers: - name: test-env - image: milvusdb/pytest:20210311-bfdffdd + image: milvusdb/pytest:20210322-201a528 command: - cat tty: true