Skip to content

Commit 14e9444

Browse files
committed
HADOOP-19223. Continue running the pipeline even if stages fail
1 parent c1a3587 commit 14e9444

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

dev-support/Jenkinsfile

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,14 @@ pipeline {
121121
}
122122

123123
steps {
124-
withCredentials(getGithubCreds()) {
125-
sh '''#!/usr/bin/env bash
124+
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
125+
withCredentials(getGithubCreds()) {
126+
sh '''#!/usr/bin/env bash
126127
127-
chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh"
128-
"${SOURCEDIR}/dev-support/jenkins.sh" run_ci
129-
'''
128+
chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh"
129+
"${SOURCEDIR}/dev-support/jenkins.sh" run_ci
130+
'''
131+
}
130132
}
131133
}
132134

@@ -167,12 +169,14 @@ pipeline {
167169
}
168170

169171
steps {
170-
withCredentials(getGithubCreds()) {
171-
sh '''#!/usr/bin/env bash
172+
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
173+
withCredentials(getGithubCreds()) {
174+
sh '''#!/usr/bin/env bash
172175
173-
chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh"
174-
"${SOURCEDIR}/dev-support/jenkins.sh" run_ci
175-
'''
176+
chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh"
177+
"${SOURCEDIR}/dev-support/jenkins.sh" run_ci
178+
'''
179+
}
176180
}
177181
}
178182

0 commit comments

Comments
 (0)