Skip to content

Commit b8a4e46

Browse files
committed
vars/shellcheck.groovy: if stage failed, report also into dsbc.dsbcResultInterim and trace in log
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 51b3702 commit b8a4e46

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

vars/shellcheck.groovy

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,16 @@ Set<List> call(Map dynacfgPipeline = [:], Boolean returnSet = true) {
170170
if (didFail) {
171171
// Track the big-stage fault to explode in the end:
172172
bigStageResult = 'FAILURE'
173-
dsbc.dsbcResultInterim = 'FAILURE'
174173
dsbc.setWorstResult('FAILURE')
175174
// Track the small-stage fault in a way that we can continue with other sub-stages:
176-
//echo msgFail
175+
echo msgFail
177176
currentBuild.result = 'FAILURE'
178177
manager.buildFailure()
179178
// Using unstable here to signal that something is
180179
// wrong with the stage verdict; given the earlier
181180
// harsher FAILURE that would be the verdict used.
182181
unstable(msgFail)
182+
dsbc.dsbcResultInterim = 'FAILURE'
183183
}
184184
return didFail
185185
} // added stage
@@ -250,7 +250,8 @@ Set<List> call(Map dynacfgPipeline = [:], Boolean returnSet = true) {
250250
infra.reportGithubStageStatus(dynacfgPipeline.get("stashnameSrc"), msg,
251251
'FAILURE', "shellcheck-${MATRIX_TAG}")
252252
msg = "FATAL: ${msg} above"
253-
//echo msg
253+
dsbc.dsbcResultInterim = 'FAILURE'
254+
echo msg
254255
manager.buildFailure()
255256
//error msg
256257
unstable(msg)

0 commit comments

Comments
 (0)