提交 6f85671c 编写于 作者: M milvus-ci-robot

modified milvus install prefix directory path in ci/jenkins/jenkinsfile/package.groovy


Former-commit-id: d69cc6532be14b1ccd00258a824e8096ebbec6ed
上级 01b91541
timeout(time: 5, unit: 'MINUTES') {
dir ("core") {
if (fileExists('milvus')) {
sh "tar -zcvf ./${PROJECT_NAME}-${PACKAGE_VERSION}.tar.gz ./milvus"
if (fileExists('/opt/milvus')) {
sh "tar -zcvf ./${PROJECT_NAME}-${PACKAGE_VERSION}.tar.gz -C /opt/ milvus"
withCredentials([usernamePassword(credentialsId: "${params.JFROG_CREDENTIALS_ID}", usernameVariable: 'JFROG_USERNAME', passwordVariable: 'JFROG_PASSWORD')]) {
def uploadStatus = sh(returnStatus: true, script: "curl -u${JFROG_USERNAME}:${JFROG_PASSWORD} -T ./${PROJECT_NAME}-${PACKAGE_VERSION}.tar.gz ${params.JFROG_ARTFACTORY_URL}/milvus/package/${PROJECT_NAME}-${PACKAGE_VERSION}.tar.gz")
if (uploadStatus != 0) {
......@@ -11,5 +10,4 @@ timeout(time: 5, unit: 'MINUTES') {
} else {
error("Milvus binary directory don't exists!")
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册