mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-06-03 05:59:30 +00:00
acbcc53872
When executing a backend step, in case of failure of the specific step, the run is marked as errored but the step error is missing. Added: 1. Log for the backend error (without trace) 2. Mark the step as errored with exit code 126 (Could not execute). Co-authored-by: Zav Shotan <zshotan@bloomberg.net> Co-authored-by: Anton Bracke <anton@ju60.de>
14 lines
307 B
Go
14 lines
307 B
Go
package types
|
|
|
|
// State defines a container state.
|
|
type State struct {
|
|
// Container exit code
|
|
ExitCode int `json:"exit_code"`
|
|
// Container exited, true or false
|
|
Exited bool `json:"exited"`
|
|
// Container is oom killed, true or false
|
|
OOMKilled bool `json:"oom_killed"`
|
|
// Container error
|
|
Error error
|
|
}
|