fix: post step failure is job failure (#85)

This commit is contained in:
ChristopherHX
2025-04-26 00:32:55 +02:00
committed by GitHub
parent 8131645cdb
commit 0aca9b8144
6 changed files with 32 additions and 8 deletions

View File

@@ -92,7 +92,7 @@ func newJobExecutor(info jobInfo, sf stepFactory, rc *RunContext) common.Executo
return nil
}))
postExec := useStepLogger(rc, stepModel, stepStagePost, step.post())
postExec := useStepLogger(rc, stepModel, stepStagePost, step.post().ThenError(setJobError))
if postExecutor != nil {
// run the post executor in reverse order
postExecutor = postExec.Finally(postExecutor)