mirror of https://github.com/milvus-io/milvus.git
modified milvus install prefix directory path in ci/jenkins/jenkinsfile/package.groovy
Former-commit-id: 8b3ac72dfa9379b83806bae58c01627ac150c2e3pull/191/head
parent
fc8de42058
commit
8f1205e90c
|
@ -1,7 +1,6 @@
|
|||
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!")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue