Delete unittest binary on jenkins ci packaging stage

This commit is contained in:
quicksilver 2019-11-08 10:54:44 +08:00
parent c4f56ddd36
commit 9194bdfb0b

View File

@ -5,6 +5,9 @@ container('milvus-build-env') {
gitlabCommitStatus(name: 'Packaged Engine') { gitlabCommitStatus(name: 'Packaged Engine') {
if (fileExists('milvus')) { if (fileExists('milvus')) {
try { try {
if (fileExists('milvus/unittest')) {
sh "rm -rf ./milvus/unittest"
}
sh "tar -zcvf ./${PROJECT_NAME}-engine-${PACKAGE_VERSION}.tar.gz ./milvus" sh "tar -zcvf ./${PROJECT_NAME}-engine-${PACKAGE_VERSION}.tar.gz ./milvus"
def fileTransfer = load "${env.WORKSPACE}/ci/function/file_transfer.groovy" 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') fileTransfer.FileTransfer("${PROJECT_NAME}-engine-${PACKAGE_VERSION}.tar.gz", "${PROJECT_NAME}/engine/${JOB_NAME}-${BUILD_ID}", 'nas storage')