diff options
author | Valery Piashchynski <[email protected]> | 2021-08-30 22:21:48 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-08-30 22:21:48 +0300 |
commit | 0f5f9517f9b5bb79e265bbf7d9ee8ce4633cf9b4 (patch) | |
tree | 145fa6ebd02989664e64fbc3646a9e0030e41e5b | |
parent | c7d9385f135853539100430521042f7e7e2ae005 (diff) |
Add error to the EventJobError event
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r-- | plugins/jobs/plugin.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/jobs/plugin.go b/plugins/jobs/plugin.go index 236aded3..91a77446 100644 --- a/plugins/jobs/plugin.go +++ b/plugins/jobs/plugin.go @@ -224,6 +224,7 @@ func (p *Plugin) Serve() chan error { //nolint:gocognit if err != nil { p.events.Push(events.JobEvent{ Event: events.EventJobError, + Error: err, ID: jb.ID(), Start: start, Elapsed: time.Since(start), @@ -248,6 +249,7 @@ func (p *Plugin) Serve() chan error { //nolint:gocognit p.events.Push(events.JobEvent{ Event: events.EventJobError, ID: jb.ID(), + Error: err, Start: start, Elapsed: time.Since(start), }) @@ -271,6 +273,7 @@ func (p *Plugin) Serve() chan error { //nolint:gocognit p.events.Push(events.JobEvent{ Event: events.EventJobError, ID: jb.ID(), + Error: err, Start: start, Elapsed: time.Since(start), }) @@ -295,6 +298,7 @@ func (p *Plugin) Serve() chan error { //nolint:gocognit Event: events.EventJobError, ID: jb.ID(), Start: start, + Error: err, Elapsed: time.Since(start), }) p.putPayload(exec) |