write internal errors only to database [CI SKIP]

This commit is contained in:
Brad Rydzewski 2016-06-06 23:45:58 -07:00
parent d01756ed80
commit 9ab3ccccff

View file

@ -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()