Skip to content

Instantly share code, notes, and snippets.

@jmeridth
Created March 15, 2010 19:20
Show Gist options
  • Save jmeridth/333214 to your computer and use it in GitHub Desktop.
Save jmeridth/333214 to your computer and use it in GitHub Desktop.
git post_recieve hook to call CC.rb
#!/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