2019-10-15 11:24:55 +00:00
|
|
|
container('milvus-build-env') {
|
|
|
|
timeout(time: 120, unit: 'MINUTES') {
|
|
|
|
gitlabCommitStatus(name: 'Build Engine') {
|
|
|
|
dir ("milvus_engine") {
|
|
|
|
try {
|
|
|
|
checkout([$class: 'GitSCM', branches: [[name: "${SEMVER}"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'SubmoduleOption',disableSubmodules: false,parentCredentials: true,recursiveSubmodules: true,reference: '',trackingSubmodules: false]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: "${params.GIT_USER}", url: "git@192.168.1.105:megasearch/milvus.git", name: 'origin', refspec: "+refs/heads/${SEMVER}:refs/remotes/origin/${SEMVER}"]]])
|
|
|
|
|
|
|
|
dir ("core") {
|
|
|
|
sh "git config --global user.email \"test@zilliz.com\""
|
|
|
|
sh "git config --global user.name \"test\""
|
|
|
|
withCredentials([usernamePassword(credentialsId: "${params.JFROG_USER}", usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
|
|
|
|
sh "./build.sh -l"
|
|
|
|
sh "rm -rf cmake_build"
|
|
|
|
sh "export JFROG_ARTFACTORY_URL='${params.JFROG_ARTFACTORY_URL}' \
|
|
|
|
&& export JFROG_USER_NAME='${USERNAME}' \
|
|
|
|
&& export JFROG_PASSWORD='${PASSWORD}' \
|
2019-10-19 12:33:55 +00:00
|
|
|
&& export FAISS_URL='http://192.168.1.105:6060/jinhai/faiss/-/archive/branch-0.3.0/faiss-branch-0.3.0.tar.gz' \
|
2019-10-16 08:34:43 +00:00
|
|
|
&& ./build.sh -t ${params.BUILD_TYPE} -d /opt/milvus -j -u -c"
|
2019-10-15 11:24:55 +00:00
|
|
|
|
2019-10-19 02:22:09 +00:00
|
|
|
sh "./coverage.sh -u root -p 123456 -t \$POD_IP"
|
2019-10-15 11:24:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (exc) {
|
|
|
|
updateGitlabCommitStatus name: 'Build Engine', state: 'failed'
|
|
|
|
throw exc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|