提交 744dd0ff 编写于 作者: Q quicksilver

format jenkins groovy file


Former-commit-id: 11369ba4095159d2e0ea2bf08cf11337ddb97f2c
上级 3d3f40ba
...@@ -6,7 +6,7 @@ timeout(time: 10, unit: 'MINUTES') { ...@@ -6,7 +6,7 @@ timeout(time: 10, unit: 'MINUTES') {
sh "pytest . --alluredir=cluster_test_out --ip ${env.JOB_NAME}-${env.BUILD_NUMBER}-cluster-milvus-cluster-proxy.milvus-cluster.svc.cluster.local" sh "pytest . --alluredir=cluster_test_out --ip ${env.JOB_NAME}-${env.BUILD_NUMBER}-cluster-milvus-cluster-proxy.milvus-cluster.svc.cluster.local"
} }
} catch (exc) { } catch (exc) {
echo 'Milvus Test Failed !' echo 'Milvus Cluster Test Failed !'
throw exc throw exc
} }
} }
...@@ -12,7 +12,10 @@ container('publish-docker') { ...@@ -12,7 +12,10 @@ container('publish-docker') {
def customImage = docker.build("${PROJECT_NAME}/engine:${DOCKER_VERSION}") def customImage = docker.build("${PROJECT_NAME}/engine:${DOCKER_VERSION}")
customImage.push() customImage.push()
} }
echo "Docker Pull Command: docker pull registry.zilliz.com/${PROJECT_NAME}/engine:${DOCKER_VERSION}" if (currentBuild.resultIsBetterOrEqualTo('SUCCESS')) {
updateGitlabCommitStatus name: 'Publish Engine Docker', state: 'success'
echo "Docker Pull Command: docker pull registry.zilliz.com/${PROJECT_NAME}/engine:${DOCKER_VERSION}"
}
} catch (exc) { } catch (exc) {
updateGitlabCommitStatus name: 'Publish Engine Docker', state: 'canceled' updateGitlabCommitStatus name: 'Publish Engine Docker', state: 'canceled'
throw exc throw exc
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册