Skip to content

Commit b4f116e

Browse files
authored
Merge pull request #1047 from vvbandeira/docker-instability
2 parents 5c06c8f + 20e8a61 commit b4f116e

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

jenkins/public_nightly.Jenkinsfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,15 @@ pipeline {
103103
stage("${TEST_SLUG}") {
104104
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
105105
if ("${TEST_SLUG}" == 'docker build'){
106-
sh "./build_openroad.sh --no_init";
106+
retry(3) {
107+
try {
108+
sh "./build_openroad.sh --no_init";
109+
}
110+
catch (e) {
111+
sleep(60);
112+
sh 'exit 1';
113+
}
114+
}
107115
sh "docker run --rm openroad/flow-centos7-builder:latest tools/install/OpenROAD/bin/openroad -help -exit";
108116
} else {
109117
sh 'nice flow/test/test_helper.sh ${TEST_SLUG}';

jenkins/public_tests_all.Jenkinsfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,15 @@ pipeline {
8080
stage("${TEST_SLUG}") {
8181
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
8282
if ("${TEST_SLUG}" == 'docker build'){
83-
sh "./build_openroad.sh";
83+
retry(3) {
84+
try {
85+
sh "./build_openroad.sh --no_init";
86+
}
87+
catch (e) {
88+
sleep(60);
89+
sh 'exit 1';
90+
}
91+
}
8492
sh "docker run --rm openroad/flow-centos7-builder:latest tools/install/OpenROAD/bin/openroad -help -exit";
8593
} else {
8694
sh 'nice flow/test/test_helper.sh ${TEST_SLUG}';

jenkins/public_tests_small.Jenkinsfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,15 @@ pipeline {
7676
stage("${TEST_SLUG}") {
7777
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
7878
if ("${TEST_SLUG}" == 'docker build'){
79-
sh "./build_openroad.sh";
79+
retry(3) {
80+
try {
81+
sh "./build_openroad.sh --no_init";
82+
}
83+
catch (e) {
84+
sleep(60);
85+
sh 'exit 1';
86+
}
87+
}
8088
sh "docker run --rm openroad/flow-centos7-builder:latest tools/install/OpenROAD/bin/openroad -help -exit";
8189
} else {
8290
sh 'nice flow/test/test_helper.sh ${TEST_SLUG}';

0 commit comments

Comments
 (0)