Retry Jenkins CI tests up to 3 times to improve reliability (redux) (#3775)
This commit is contained in:
parent
7a7269e983
commit
6d42e56c85
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -73,8 +73,8 @@ def buildPlatformCmake(buildName, conf, nodeReq, dockerTarget) {
|
|||||||
}
|
}
|
||||||
def test_suite = conf["withGpu"] ? (conf["multiGpu"] ? "mgpu" : "gpu") : "cpu"
|
def test_suite = conf["withGpu"] ? (conf["multiGpu"] ? "mgpu" : "gpu") : "cpu"
|
||||||
// Build node - this is returned result
|
// Build node - this is returned result
|
||||||
node(nodeReq) {
|
|
||||||
retry(3) {
|
retry(3) {
|
||||||
|
node(nodeReq) {
|
||||||
unstash name: 'srcs'
|
unstash name: 'srcs'
|
||||||
echo """
|
echo """
|
||||||
|===== XGBoost CMake build =====
|
|===== XGBoost CMake build =====
|
||||||
|
|||||||
@ -48,11 +48,11 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Jenkins: Build doc') {
|
stage('Jenkins: Build doc') {
|
||||||
|
retry(3) {
|
||||||
agent {
|
agent {
|
||||||
label 'linux && cpu && restricted'
|
label 'linux && cpu && restricted'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
retry(3) {
|
|
||||||
unstash name: 'srcs'
|
unstash name: 'srcs'
|
||||||
script {
|
script {
|
||||||
def commit_id = "${GIT_COMMIT}"
|
def commit_id = "${GIT_COMMIT}"
|
||||||
@ -96,8 +96,8 @@ def buildPlatformCmake(buildName, conf, nodeReq, dockerTarget) {
|
|||||||
dockerArgs = "--build-arg CUDA_VERSION=" + conf["cudaVersion"]
|
dockerArgs = "--build-arg CUDA_VERSION=" + conf["cudaVersion"]
|
||||||
}
|
}
|
||||||
// Build node - this is returned result
|
// Build node - this is returned result
|
||||||
node(nodeReq) {
|
|
||||||
retry(3) {
|
retry(3) {
|
||||||
|
node(nodeReq) {
|
||||||
unstash name: 'srcs'
|
unstash name: 'srcs'
|
||||||
echo """
|
echo """
|
||||||
|===== XGBoost CMake build =====
|
|===== XGBoost CMake build =====
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user