Skip to content
Snippets Groups Projects
Commit 04fcf8fe authored by Martin Lowe's avatar Martin Lowe :flag_ca:
Browse files

Merge branch 'malowe/master/update_hook_msg' into 'master'

Update message in git hook to contain fingerprint URL

See merge request !85
parents e568cd51 0619e6f5
No related branches found
No related tags found
1 merge request!85Update message in git hook to contain fingerprint URL
Pipeline #5820 passed
...@@ -166,7 +166,7 @@ else ...@@ -166,7 +166,7 @@ else
contained_warnings_errors = true contained_warnings_errors = true
puts "\nErrors:" puts "\nErrors:"
commit_status['errors'].each do |error| commit_status['errors'].each do |error|
puts "GL-HOOK-ERR: #{error['message']}" puts "#{error['message']}"
end end
end end
...@@ -176,6 +176,11 @@ else ...@@ -176,6 +176,11 @@ else
end end
puts "\n\n" puts "\n\n"
end end
if (contained_warnings_errors) then
puts "GL-HOOK-ERR: More information is available at https://api.eclipse.org/git/eca/status/#{parsed_response['fingerprint']}/ui"
else
puts "More information is available at https://api.eclipse.org/git/eca/status/#{parsed_response['fingerprint']}/ui"
end
## after parsing ## after parsing
if (!parsed_response.nil? && parsed_response['trackedProject'] == false) then if (!parsed_response.nil? && parsed_response['trackedProject'] == false) then
if (contained_warnings_errors) then if (contained_warnings_errors) then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment