summaryrefslogtreecommitdiff
path: root/app/models/integrations/jenkins.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/integrations/jenkins.rb')
-rw-r--r--app/models/integrations/jenkins.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/integrations/jenkins.rb b/app/models/integrations/jenkins.rb
index 24a7ff62e68..d2e8393ef95 100644
--- a/app/models/integrations/jenkins.rb
+++ b/app/models/integrations/jenkins.rb
@@ -44,12 +44,12 @@ module Integrations
def test(data)
begin
result = execute(data)
- return { success: false, result: result[:message] } if result[:http_status] != 200
+ return { success: false, result: result.message } if result.payload[:http_status] != 200
rescue StandardError => e
return { success: false, result: e }
end
- { success: true, result: result[:message] }
+ { success: true, result: result.message }
end
override :hook_url