Add pipeline step to print/get the container logs (#2730)

* Add pipeline step to print/get the container logs

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Add pipeline step to print/get the container logs

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
pull/2746/head
quicksilver 2020-07-03 20:36:28 +08:00 committed by JinHai-CN
parent 367c72675c
commit 6996e215a2
1 changed files with 6 additions and 1 deletions

View File

@ -81,7 +81,12 @@ pipeline {
steps {
container("milvus-${BINARY_VERSION}-build-env") {
script {
load "${env.WORKSPACE}/ci/jenkins/step/build.groovy"
try{
load "${env.WORKSPACE}/ci/jenkins/step/build.groovy"
} catch (Exception e) {
containerLog "milvus-${BINARY_VERSION}-build-env"
throw e
}
}
}
}