Created
March 15, 2010 19:20
-
-
Save jmeridth/333214 to your computer and use it in GitHub Desktop.
git post_recieve hook to call CC.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
while (input = STDIN.read) != '' | |
rev_old, rev_new, ref = input.split(" ") | |
if ref == "refs/heads/master" | |
url="https://user:[email protected]/projects/build/project_name" | |
puts "Run CI build for project_name application" | |
`wget --no-check-certificate #{url} > /dev/null 2>&1` | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment