mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-03-27 23:02:54 +00:00
Update agent.go
This commit is contained in:
parent
61fa2b5792
commit
108184daeb
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@ func (a *Agent) Run(payload *queue.Work, cancel <-chan bool) error {
|
|||
|
||||
if err != nil {
|
||||
payload.Job.ExitCode = 255
|
||||
payload.Job.Error = err.Error()
|
||||
}
|
||||
if exitErr, ok := err.(*build.ExitError); ok {
|
||||
payload.Job.ExitCode = exitErr.Code
|
||||
|
|
Loading…
Reference in a new issue