File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments