Find Git branch name in post-update hook [duplicate]

The first parameter to the post-update hook is the branch reference in full – for instance I see ‘refs/heads/master’ for a push to ‘origin master’. So an example hook script that just prints the branch modified is: #!/bin/sh branch=$(git rev-parse –symbolic –abbrev-ref $1) echo Update pushed to branch $branch exec git update-server-info To illustrate, when … Read more

What is the difference between Hudson and CruiseControl for Java projects?

I agree with this answer, but wanted to add a few points. In short, Hudson (update: Jenkins) is likely the better choice now. First and foremost because creating and configuring jobs (“projects” in CC vocabulary) is just so much faster through Hudson’s web UI, compared to editing CruiseControl’s XML configuration file (which we used to … Read more

CruiseControl [.Net] vs TeamCity for continuous integration?

I have worked on and with Continuous Integration tools since the one that spawned Cruise Control (java version). I’ve tried almost all of them at some point. I’ve never been happier than I am with TeamCity. It is very simple to set up and still provides a great deal of power. The build statistics page … Read more

tech