diff options
author | pv2b <pvz@pvz.pp.se> | 2017-11-20 09:16:44 +0100 |
---|---|---|
committer | Neil Lathwood <neil@lathwood.co.uk> | 2017-11-20 08:16:44 +0000 |
commit | 115764f3b2d20b3732a8d81c38afaea19c11dad8 (patch) | |
tree | 2579e2406db30fae1030f6a30991c2b2bd173d74 | |
parent | 8bef76580a3e848836f3f12fe9e6c50380dbe01e (diff) |
feature: Added model information to exec hook (#1105)
* Add OX_NODE_MODEL to exec hook
* Update docs to reflect added OX_NODE_MSG to hook
-rw-r--r-- | docs/Hooks.md | 1 | ||||
-rw-r--r-- | lib/oxidized/hook/exec.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/docs/Hooks.md b/docs/Hooks.md index 7d503a3..fab4025 100644 --- a/docs/Hooks.md +++ b/docs/Hooks.md @@ -26,6 +26,7 @@ OX_NODE_IP OX_NODE_FROM OX_NODE_MSG OX_NODE_GROUP +OX_NODE_MODEL OX_JOB_STATUS OX_JOB_TIME OX_REPO_COMMITREF diff --git a/lib/oxidized/hook/exec.rb b/lib/oxidized/hook/exec.rb index a9a5950..3f984c2 100644 --- a/lib/oxidized/hook/exec.rb +++ b/lib/oxidized/hook/exec.rb @@ -71,6 +71,7 @@ class Exec < Oxidized::Hook "OX_NODE_FROM" => ctx.node.from.to_s, "OX_NODE_MSG" => ctx.node.msg.to_s, "OX_NODE_GROUP" => ctx.node.group.to_s, + "OX_NODE_MODEL" => ctx.node.model.class.name, "OX_REPO_COMMITREF" => ctx.commitref.to_s, "OX_REPO_NAME" => ctx.node.repo.to_s, ) |