diff --git a/agent/agent.go b/agent/agent.go index 120025cf..d3a83f8a 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -71,6 +71,7 @@ func (a *Agent) Run(payload *queue.Work, cancel <-chan bool) error { } if exitErr, ok := err.(*build.ExitError); ok { payload.Job.ExitCode = exitErr.Code + payload.Job.Error = "" // exit errors are already written to the log } payload.Job.Finished = time.Now().Unix()