let build provide changes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

let build provide changes

Tom Huybrechts
Hi,

I have a build that does a Maven release of one of my projects.
It's written in Ant and goes through a few steps:

- determines the SVN revision of the last stable build from CI
- checks out that revision
- does a maven-release using a custom version of the
maven-release-plugin (I changed it so that it does not need to change
the trunk - it simply modifies the POMs in the working copy and
commits that to a tag)

I run this through Hudson, but  a minor problem I have is that the
changes report now only provides the changes to my build scripts and
not the changes that have occurred to the project that is being
released.

So my question: Is it possible (with a plugin or a patch)  to let the
build itself provide a changes report (something I could generate in
my ant build) instead of getting it from the SVN log ?

Tom

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

Reply | Threaded
Open this post in threaded view
|

Re: let build provide changes

Wolfram Kroll-2
Am 18.07.2007 um 22:07 schrieb Tom Huybrechts:

> Hi,
>
> I have a build that does a Maven release of one of my projects.
> It's written in Ant and goes through a few steps:
>
> - determines the SVN revision of the last stable build from CI
> - checks out that revision
> - does a maven-release using a custom version of the
> maven-release-plugin (I changed it so that it does not need to change
> the trunk - it simply modifies the POMs in the working copy and
> commits that to a tag)
>
> I run this through Hudson, but  a minor problem I have is that the
> changes report now only provides the changes to my build scripts and
> not the changes that have occurred to the project that is being
> released.
>
> So my question: Is it possible (with a plugin or a patch)  to let the
> build itself provide a changes report (something I could generate in
> my ant build) instead of getting it from the SVN log ?

We have the same problem with some scripts that check out sources  
themselfs. I'd like to have the same functionality. But currently  
it's not possible to provide your own change log (as far as I know).

Wolfram

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

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

Reply | Threaded
Open this post in threaded view
|

Re: let build provide changes

Jesse Glick
Wolfram Kroll wrote:
> We have the same problem with some scripts that check out sources
> themselfs. I'd like to have the same functionality.

I have sometimes wanted it too, for builds with complex setup - e.g.
that use some CVS modules from the trunk and some from a branch.

> But currently it's not possible to provide your own change log (as
> far as I know).

Maybe you can, from the build's script, (1) locate the build folder
(using an env var? for the start date?), (2) overwrite changelog.xml. I
have not tried it. Has anyone else? Would not work if Hudson loads
changelog.xml immediately after SCM operations and then refuses to check
for changes on disk.

-J.

--
[hidden email]  netbeans.org  ant.apache.org  hudson.dev.java.net
             http://google.com/search?q=e%5E%28pi*i%29%2B1

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

Reply | Threaded
Open this post in threaded view
|

Re: let build provide changes

Kohsuke Kawaguchi
Administrator
Jesse Glick wrote:

> Wolfram Kroll wrote:
>> We have the same problem with some scripts that check out sources
>> themselfs. I'd like to have the same functionality.
>
> I have sometimes wanted it too, for builds with complex setup - e.g.
> that use some CVS modules from the trunk and some from a branch.
>
>> But currently it's not possible to provide your own change log (as
>> far as I know).
>
> Maybe you can, from the build's script, (1) locate the build folder
> (using an env var? for the start date?), (2) overwrite changelog.xml. I
> have not tried it. Has anyone else? Would not work if Hudson loads
> changelog.xml immediately after SCM operations and then refuses to check
> for changes on disk.
Sounds like overwriting changelog is the way to go, but if a build
happens on a slave, the build by itself won't be able to overwrite
changelog in the master. So doing this would require a plugin.

Is it easy to generate changelog.xml from build?

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: let build provide changes

Wolfram Kroll-2

Am 19.07.2007 um 06:09 schrieb Kohsuke Kawaguchi:

> Jesse Glick wrote:
>> Wolfram Kroll wrote:
>>> We have the same problem with some scripts that check out sources  
>>> themselfs. I'd like to have the same functionality.
>> I have sometimes wanted it too, for builds with complex setup -  
>> e.g. that use some CVS modules from the trunk and some from a branch.
>>> But currently it's not possible to provide your own change log (as
>>> far as I know).
>> Maybe you can, from the build's script, (1) locate the build  
>> folder (using an env var? for the start date?), (2) overwrite  
>> changelog.xml. I have not tried it. Has anyone else? Would not  
>> work if Hudson loads changelog.xml immediately after SCM  
>> operations and then refuses to check for changes on disk.
>
> Sounds like overwriting changelog is the way to go, but if a build  
> happens on a slave, the build by itself won't be able to overwrite  
> changelog in the master. So doing this would require a plugin.
>
> Is it easy to generate changelog.xml from build?

Should be. But when I tried it, cvs and the cvschangelog task in ant  
had problems with my locale (german) settings (date format?).  I gave  
up then. The task needs a start and an end date.

Are these available to the build? I mean a cvs-usable date of the  
last (successful?) build and the current start date/time - the same  
Hudson uses.

Wolfram

>
> --
> Kohsuke Kawaguchi
> Sun Microsystems                   [hidden email]

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

Reply | Threaded
Open this post in threaded view
|

Re: let build provide changes

Kohsuke Kawaguchi
Administrator
Wolfram Kroll wrote:

> Am 19.07.2007 um 06:09 schrieb Kohsuke Kawaguchi:
>
>> Jesse Glick wrote:
>>> Wolfram Kroll wrote:
>>>> We have the same problem with some scripts that check out sources  
>>>> themselfs. I'd like to have the same functionality.
>>> I have sometimes wanted it too, for builds with complex setup -  
>>> e.g. that use some CVS modules from the trunk and some from a branch.
>>>> But currently it's not possible to provide your own change log (as
>>>> far as I know).
>>> Maybe you can, from the build's script, (1) locate the build  
>>> folder (using an env var? for the start date?), (2) overwrite  
>>> changelog.xml. I have not tried it. Has anyone else? Would not  
>>> work if Hudson loads changelog.xml immediately after SCM  
>>> operations and then refuses to check for changes on disk.
>>
>> Sounds like overwriting changelog is the way to go, but if a build  
>> happens on a slave, the build by itself won't be able to overwrite  
>> changelog in the master. So doing this would require a plugin.
>>
>> Is it easy to generate changelog.xml from build?
>
> Should be. But when I tried it, cvs and the cvschangelog task in ant  
> had problems with my locale (german) settings (date format?).  I gave  
> up then. The task needs a start and an end date.
>
> Are these available to the build? I mean a cvs-usable date of the  
> last (successful?) build and the current start date/time - the same  
> Hudson uses.
Sorry for a delay in the response. No, they are not readily available to
builds.



--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment