Retry Jenkins CI tests up to 3 times to improve reliability (redux) (#3775)

This commit is contained in:
Philip Hyunsu Cho
2018-10-08 11:24:01 -07:00
committed by GitHub
parent 7a7269e983
commit 6d42e56c85
2 changed files with 9 additions and 9 deletions

View File

@@ -48,11 +48,11 @@ pipeline {
}
}
stage('Jenkins: Build doc') {
agent {
label 'linux && cpu && restricted'
}
steps {
retry(3) {
retry(3) {
agent {
label 'linux && cpu && restricted'
}
steps {
unstash name: 'srcs'
script {
def commit_id = "${GIT_COMMIT}"
@@ -96,8 +96,8 @@ def buildPlatformCmake(buildName, conf, nodeReq, dockerTarget) {
dockerArgs = "--build-arg CUDA_VERSION=" + conf["cudaVersion"]
}
// Build node - this is returned result
node(nodeReq) {
retry(3) {
retry(3) {
node(nodeReq) {
unstash name: 'srcs'
echo """
|===== XGBoost CMake build =====