diff --git a/executor/linux/step.go b/executor/linux/step.go index 9184ef96..ff7ccfe0 100644 --- a/executor/linux/step.go +++ b/executor/linux/step.go @@ -154,6 +154,7 @@ func (c *client) ExecStep(ctx context.Context, ctn *pipeline.Container) error { if err != nil { _step.SetStatus(constants.StatusError) _step.SetError(err.Error()) + return err } diff --git a/executor/local/step.go b/executor/local/step.go index dc34bb12..67b6b28f 100644 --- a/executor/local/step.go +++ b/executor/local/step.go @@ -83,6 +83,8 @@ func (c *client) ExecStep(ctx context.Context, ctn *pipeline.Container) error { // run the runtime container err = c.Runtime.RunContainer(ctx, ctn, c.pipeline) if err != nil { + _step.SetStatus(constants.StatusError) + _step.SetError(err.Error()) return err }