Regenerate changelog?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Regenerate changelog?

Steele, Richard
How can I force the regeneration of a change log?  Put another way, when does Hudson call the ChangeLogBuilder and the ChangeLogParser?

The reason I'm asking: we end up with a large number of changes without a comment or a useless comment ("Mickey was here", "X").  The public floggings have commenced: we tell people to fix the comments.  After they do, how would I go about forcing hudson to regenerate a change log for a previous build?

(This is using a ClearCase plugin; not sure if this makes sense in the SVN/CVS worlds.)

Thanks,
Rich
ePlus Consulting
Reply | Threaded
Open this post in threaded view
|

Re: Regenerate changelog?

Kohsuke Kawaguchi
Administrator
ChangeLogBuilder is not a Hudson abstraction, but Hudson does expect
SCMs to create changelog.xml when a build is performed.

ChangeLogParser is used when Hudson decides to load changelog. It
happens somewhat lazily, but driven by some other code wanting to
access ChangeLogSet (most often they are driven by views, I'd
imagine.)

What I'd do if I'm in your situation would be...

1. define ClearCaseChangeLogSet.recalculate() method.
2. this method fetches the updated log messages from ClearCase, overwrite
   changelog.xml with new data, then also update in-memory data that it holds.
3. put some code in ClearCaseSCM to go through all build records and
   trigger this operation.
4. invoke it from the scripting console.


2007/4/24, rsteele <[hidden email]>:

>
> How can I force the regeneration of a change log?  Put another way, when does
> Hudson call the ChangeLogBuilder and the ChangeLogParser?
>
> The reason I'm asking: we end up with a large number of changes without a
> comment or a useless comment ("Mickey was here", "X").  The public floggings
> have commenced: we tell people to fix the comments.  After they do, how
> would I go about forcing hudson to regenerate a change log for a previous
> build?
>
> (This is using a ClearCase plugin; not sure if this makes sense in the
> SVN/CVS worlds.)
>
> Thanks,
> Rich
> ePlus Consulting
> --
> View this message in context: http://www.nabble.com/Regenerate-changelog--tf3642157.html#a10171674
> Sent from the Hudson users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]