Retrieving the build tag from maven/subversion

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

Retrieving the build tag from maven/subversion

Sergio Fernandes
Hi all,
 
In order to send information to the bug tracking system, I need to retrieve the last generated build tag. I'm using Maven2/Subversion and the Release plugin to perform the tagging.
Is there an easy way to retrieve the build tag from Maven/Release plugin?
Another possibility is to list the entries in SVN tags folder, but it doesn't seem very robust for me...
 
 
Thanks in advance for any help.
 
----------------------------------------------------------
Sergio Fernandes
Software Engineering
[hidden email]
 
Sakonnet Technology
Centro Empresarial Mourisco
Praia de Botafogo 501 1°Andar
Bloco A - Torre Pão de Açúcar
22250-040 - Rio de Janeiro, RJ Brazil

+55 (21) 2586 6072 direct
+55 (21) 8272 7193 mobile
+55 (21) 2586 6001 fax
 
Reply | Threaded
Open this post in threaded view
|

Re: Retrieving the build tag from maven/subversion

Kohsuke Kawaguchi
Administrator
Sergio Fernandes wrote:
> In order to send information to the bug tracking system, I need to
> retrieve the last generated build tag. I'm using Maven2/Subversion and
> the Release plugin to perform the tagging.
 >
> Is there an easy way to retrieve the build tag from Maven/Release
> plugin?

So if I understand you correctly, your set up Hudson to run "mvn
release:prepare release:perform" (without user interaction, I guess, so
the Maven automatically puts the version number?), and you'd like to
externally retrieve that tag that Maven used? Is that right?

Is this the free-style project? Or the native m2 project?

Maybe Hudson should snatch release.properties after the release:prepare
goal, and expose that on the UI.

> Another possibility is to list the entries in SVN tags folder, but it
> doesn't seem very robust for me...

Right.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

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

Re: Retrieving the build tag from maven/subversion

Sergio Fernandes

>>So if I understand you correctly, your set up Hudson to run "mvn
release:prepare release:perform" (without user interaction, I guess, so
the Maven automatically puts the version number?), and you'd like to
externally retrieve that tag that Maven used? Is that right?

Exactly!


>>Is this the free-style project? Or the native m2 project?

Maven2, but I can switch to free-styly if necessary.


>>Maybe Hudson should snatch release.properties after the
release:prepare goal, and expose that on the UI.
 
How can I do that?



Sergio Fernandes


-----Original Message-----
From: Kohsuke Kawaguchi [mailto:[hidden email]]
Sent: Sunday, April 22, 2007 10:56 PM
To: [hidden email]
Subject: Re: Retrieving the build tag from maven/subversion

Sergio Fernandes wrote:
> In order to send information to the bug tracking system, I need to
> retrieve the last generated build tag. I'm using Maven2/Subversion and

> the Release plugin to perform the tagging.
 >
> Is there an easy way to retrieve the build tag from Maven/Release
> plugin?

So if I understand you correctly, your set up Hudson to run "mvn
release:prepare release:perform" (without user interaction, I guess, so
the Maven automatically puts the version number?), and you'd like to
externally retrieve that tag that Maven used? Is that right?

Is this the free-style project? Or the native m2 project?

Maybe Hudson should snatch release.properties after the release:prepare
goal, and expose that on the UI.

> Another possibility is to list the entries in SVN tags folder, but it
> doesn't seem very robust for me...

Right.

--
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: Retrieving the build tag from maven/subversion

Kohsuke Kawaguchi
Administrator
2007/4/22, Sergio Fernandes <[hidden email]>:
> >>Is this the free-style project? Or the native m2 project?
>
> Maven2, but I can switch to free-styly if necessary.

I was just checking. Tha's all.

> >>Maybe Hudson should snatch release.properties after the
> release:prepare goal, and expose that on the UI.
>
> How can I do that?

I was thinking about extending Hudson to do this automatically when
"release:prepare" goal runs. Could you file an issue for this?

--
Kohsuke Kawaguchi

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

Reply | Threaded
Open this post in threaded view
|

RE: Re: Retrieving the build tag from maven/subversion

Sergio Fernandes
 
Kohsuke,

I posted the issue
https://hudson.dev.java.net/issues/show_bug.cgi?id=505 for that.

Meanwhile I'm retrieving the property directly form the file, inside the
publisher perform().


Thanks,

Sergio

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]
On Behalf Of Kohsuke Kawaguchi
Sent: Monday, April 23, 2007 1:44 AM
To: [hidden email]
Subject: Re: Retrieving the build tag from maven/subversion

2007/4/22, Sergio Fernandes <[hidden email]>:
> >>Is this the free-style project? Or the native m2 project?
>
> Maven2, but I can switch to free-styly if necessary.

I was just checking. Tha's all.

> >>Maybe Hudson should snatch release.properties after the
> release:prepare goal, and expose that on the UI.
>
> How can I do that?

I was thinking about extending Hudson to do this automatically when
"release:prepare" goal runs. Could you file an issue for this?

--
Kohsuke Kawaguchi

---------------------------------------------------------------------
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]