From 9194bdfb0bc1eb6d2699117c98b9dc3fcd400fcc Mon Sep 17 00:00:00 2001 From: quicksilver Date: Fri, 8 Nov 2019 10:54:44 +0800 Subject: [PATCH] Delete unittest binary on jenkins ci packaging stage --- ci/jenkinsfile/packaged_milvus.groovy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/jenkinsfile/packaged_milvus.groovy b/ci/jenkinsfile/packaged_milvus.groovy index 1d30e21910..f185cb4c5f 100644 --- a/ci/jenkinsfile/packaged_milvus.groovy +++ b/ci/jenkinsfile/packaged_milvus.groovy @@ -5,6 +5,9 @@ container('milvus-build-env') { gitlabCommitStatus(name: 'Packaged Engine') { if (fileExists('milvus')) { try { + if (fileExists('milvus/unittest')) { + sh "rm -rf ./milvus/unittest" + } sh "tar -zcvf ./${PROJECT_NAME}-engine-${PACKAGE_VERSION}.tar.gz ./milvus" def fileTransfer = load "${env.WORKSPACE}/ci/function/file_transfer.groovy" fileTransfer.FileTransfer("${PROJECT_NAME}-engine-${PACKAGE_VERSION}.tar.gz", "${PROJECT_NAME}/engine/${JOB_NAME}-${BUILD_ID}", 'nas storage')