mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-06 02:42:53 +08:00
This reverts commit f2eb4ca5040ce3348695608e9d36e36ad618ccde [formerly 29cd25f823901ecd46fd174fa26ddb57ef3c3620] Former-commit-id: 53d31f7f21b81ab8c110f115e2b99e6fd4645519
19 lines
989 B
Groovy
19 lines
989 B
Groovy
container('milvus-testframework') {
|
|
timeout(time: 10, unit: 'MINUTES') {
|
|
gitlabCommitStatus(name: 'Dev Test') {
|
|
try {
|
|
dir ("${PROJECT_NAME}_test") {
|
|
checkout([$class: 'GitSCM', branches: [[name: "${SEMVER}"]], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: "${params.GIT_USER}", url: "git@192.168.1.105:Test/milvus_test.git", name: 'origin', refspec: "+refs/heads/${SEMVER}:refs/remotes/origin/${SEMVER}"]]])
|
|
sh 'python3 -m pip install -r requirements.txt'
|
|
sh "pytest . --alluredir=test_out --ip ${env.JOB_NAME}-${env.BUILD_NUMBER}-milvus-gpu-engine.kube-opt.svc.cluster.local"
|
|
}
|
|
} catch (exc) {
|
|
updateGitlabCommitStatus name: 'Dev Test', state: 'failed'
|
|
currentBuild.result = 'FAILURE'
|
|
echo 'Milvus Test Failed !'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|