How to generate changelog: git log since last Hudson build?

Posted by takeshin on Stack Overflow See other posts from Stack Overflow or by takeshin
Published on 2010-05-09T18:39:37Z Indexed on 2010/05/09 19:58 UTC
Read the original article Hit count: 197

I'm using Phing to do post build tasks in Hudson.

I want to generate changelog containing all commits since last successful Hudson build. But looks like neither Hudson nor Git plugin for Hudson does not provide %last_build_time% variable.

This would be satisfying solution, (but how to get the time?):

git log --pretty="%s" --since="%last_build_time%"

The only way I see for now is extracting it from the job xml file, but I do not know if it is possible with Phing.

How do you generate your change logs?

© Stack Overflow or respective owner

Related posts about continuous-integration

Related posts about phing