Hi

I'm trying to create a readme file based on the commit messages for all the 
new revisions in the current build. Currently I do this by using the 
Jenkins API to request the changesets for the last build (e.g. we're 
currently building build  #6 so the last build is #5). These changesets 
give me the last revision number for my VCS and then I can find out what 
has changed since. However this doesn't work quite that nicely because:
* The first build doesn't have a change set, which seems a bit silly 
because obviously all the changes from all the commits until then are 
included
* Sometimes a build fails at a point where there are no changes (e.g. 
failure to clear the workspace). Then this build has no change set
* A build is run multiple times on a given VCS revision.

So the question is what is the best / easiest way to determine which 
revisions are new in the current build in relation to the last successful 
build.

Thanks

Patrick

Reply via email to