post-build-actions in maven 2 project

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

post-build-actions in maven 2 project

tvworks

Why are there not the same post-build-actions in a maven 2 project as there are in a free-style project?  I would like to use several of those actions for my maven 2 projects.

 

Jason Chaffee

Software Architect/Server Team Manager

TVWorks LLC

APPLICATIONS DIVISION

Tel : 415.380.6316

Cell: 415.637.8061

 

 

Reply | Threaded
Open this post in threaded view
|

Re: post-build-actions in maven 2 project

Kohsuke Kawaguchi
Administrator
Jason Chaffee wrote:
> Why are there not the same post-build-actions in a maven 2 project as
> there are in a free-style project?  I would like to use several of those
> actions for my maven 2 projects.

This is because two project types have different information available
to post build actions. So additional code needs to be written to
interface with two types, even if bulk of the operations are the same.

Can you name wha are those "several of those actions" that you'd like to
use?


--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

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

RE: Re: post-build-actions in maven 2 project

tvworks

Here are some of the actions that I would use now and I am sure there will be more as new plugins are developed.

 

·         Publish Javadoc

·         Build other Projects (would like to trigger non-maven builds)

·         Plot build data

·         Hudson Text Finder

·         Publish job status to Google Calendar

·         Report Violations

·         Publish artifacts to SCP Repository

·         I would like to add the ability to publish the site in the future

 

 

-----Original Message-----
From: Kohsuke Kawaguchi [mailto:[hidden email]]
Sent: Saturday, August 11, 2007 8:28 AM
To: [hidden email]
Subject: Re: post-build-actions in maven 2 project

 

Jason Chaffee wrote:

> Why are there not the same post-build-actions in a maven 2 project as

> there are in a free-style project?  I would like to use several of those

> actions for my maven 2 projects.

 

This is because two project types have different information available

to post build actions. So additional code needs to be written to

interface with two types, even if bulk of the operations are the same.

 

Can you name wha are those "several of those actions" that you'd like to

use?

 

 

--

Kohsuke Kawaguchi

Sun Microsystems                   [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: post-build-actions in maven 2 project

Kohsuke Kawaguchi
Administrator
Jason Chaffee wrote:
> Here are some of the actions that I would use now and I am sure there
> will be more as new plugins are developed.
>
>  
>
> *         Publish Javadoc

If your Maven goal runs javadoc, this will happen automatically. You
just need to include "javadoc:javadoc" to the goal list.

> *         Build other Projects (would like to trigger non-maven builds)

I think there's an RFE filed for this already. We really need it.

> *         Plot build data

Could you elaborate?

> *         Hudson Text Finder
>
> *         Publish job status to Google Calendar
>
> *         Report Violations
>
> *         Publish artifacts to SCP Repository

We need to ask plugin authors to do these, so unfortunately that means
issues need to be filed individually on them.

> *         I would like to add the ability to publish the site in the
> future

Makes sense.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

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

RE: Re: post-build-actions in maven 2 project

tvworks


> *         Plot build data

        > * Could you elaborate?


Basically, I would like to use the Plot build data plugin in my maven 2
builds as I would like to start plotting different things with respect
to the build.

I guess essentially, I would like to see all of the post-build plugins
available for maven 2 projects as well...except for the functionality
that is handle automatically by hudson, such as javadoc.



-----Original Message-----
From: Kohsuke Kawaguchi [mailto:[hidden email]]
Sent: Tuesday, August 14, 2007 9:25 PM
To: [hidden email]
Subject: Re: post-build-actions in maven 2 project

Jason Chaffee wrote:
> Here are some of the actions that I would use now and I am sure there
> will be more as new plugins are developed.
>
>  
>
> *         Publish Javadoc

If your Maven goal runs javadoc, this will happen automatically. You
just need to include "javadoc:javadoc" to the goal list.

> *         Build other Projects (would like to trigger non-maven
builds)

I think there's an RFE filed for this already. We really need it.

> *         Plot build data

Could you elaborate?

> *         Hudson Text Finder
>
> *         Publish job status to Google Calendar
>
> *         Report Violations
>
> *         Publish artifacts to SCP Repository

We need to ask plugin authors to do these, so unfortunately that means
issues need to be filed individually on them.

> *         I would like to add the ability to publish the site in the
> future

Makes sense.

--
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: Re: post-build-actions in maven 2 project

tvworks
In reply to this post by Kohsuke Kawaguchi
> *         Publish Javadoc

        If your Maven goal runs javadoc, this will happen automatically.
You
        just need to include "javadoc:javadoc" to the goal list.


I am doing this and it isn't "publishing" them by creating a link in
hudson like it does for the post-build actions.  Instead, you have to
drill down into the workspace to find them.

-----Original Message-----
From: Kohsuke Kawaguchi [mailto:[hidden email]]
Sent: Tuesday, August 14, 2007 9:25 PM
To: [hidden email]
Subject: Re: post-build-actions in maven 2 project

Jason Chaffee wrote:
> Here are some of the actions that I would use now and I am sure there
> will be more as new plugins are developed.
>
>  
>
> *         Publish Javadoc

If your Maven goal runs javadoc, this will happen automatically. You
just need to include "javadoc:javadoc" to the goal list.

> *         Build other Projects (would like to trigger non-maven
builds)

I think there's an RFE filed for this already. We really need it.

> *         Plot build data

Could you elaborate?

> *         Hudson Text Finder
>
> *         Publish job status to Google Calendar
>
> *         Report Violations
>
> *         Publish artifacts to SCP Repository

We need to ask plugin authors to do these, so unfortunately that means
issues need to be filed individually on them.

> *         I would like to add the ability to publish the site in the
> future

Makes sense.

--
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: post-build-actions in maven 2 project

Kohsuke Kawaguchi
Administrator
In reply to this post by tvworks
Jason Chaffee wrote:

>
>> *         Plot build data
>
> > * Could you elaborate?
>
>
> Basically, I would like to use the Plot build data plugin in my maven 2
> builds as I would like to start plotting different things with respect
> to the build.
>
> I guess essentially, I would like to see all of the post-build plugins
> available for maven 2 projects as well...except for the functionality
> that is handle automatically by hudson, such as javadoc.
Right. Fundamentally there's an abstraction failure. Since plugins like
plot and text-finder doesn't really depend on any free-styleness nor
maven-ness, so that when those plugin developers write their code
naturally, it will become automatically possible to use it in both
project types.

The tricky part was the compatibility aspect, but let me think about
this a bit more...


--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

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

Re: post-build-actions in maven 2 project

Kohsuke Kawaguchi
Administrator
In reply to this post by tvworks

Jason Chaffee wrote:

>> *         Publish Javadoc
>
> If your Maven goal runs javadoc, this will happen automatically.
> You
> just need to include "javadoc:javadoc" to the goal list.
>
>
> I am doing this and it isn't "publishing" them by creating a link in
> hudson like it does for the post-build actions.  Instead, you have to
> drill down into the workspace to find them.
Indeed. Either somehow Maven has changed its behavior since I've written
this feature, or maybe it wasn't working from the beginning.

Fixed this in 1.131.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

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

Re: post-build-actions in maven 2 project

jblack
In reply to this post by Kohsuke Kawaguchi
I would like to trigger a maven 2 build from another maven 2 project.  Hudson can do this easily with freestyle projects, but I would like get the same feature from the maven style jobs, too.  For example, I would run a compilation and unit test job and upon its success, trigger a distributed integration test or user acceptance job.  I really like the added value of the maven-style job over the freestyle-style job for the multi-module builds that I have.

I don't think there are any issues specifically filed against this request unless the new Publisher changes encapsulate what this suggestion is entailing?  https://hudson.dev.java.net/issues/show_bug.cgi?id=384


Jeff

kohsuke wrote
Jason Chaffee wrote:
> Why are there not the same post-build-actions in a maven 2 project as
> there are in a free-style project?  I would like to use several of those
> actions for my maven 2 projects.

This is because two project types have different information available
to post build actions. So additional code needs to be written to
interface with two types, even if bulk of the operations are the same.

Can you name wha are those "several of those actions" that you'd like to
use?


--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi@sun.com

 
Reply | Threaded
Open this post in threaded view
|

Re: post-build-actions in maven 2 project

Kohsuke Kawaguchi
Administrator
jblack wrote:
> I would like to trigger a maven 2 build from another maven 2 project.  Hudson
> can do this easily with freestyle projects, but I would like get the same
> feature from the maven style jobs, too.  For example, I would run a
> compilation and unit test job and upon its success, trigger a distributed
> integration test or user acceptance job.  I really like the added value of
> the maven-style job over the freestyle-style job for the multi-module builds
> that I have.

Yes, this is a much needed feature.

The good news is that I started making progress toward issue #384 in
1.150. So stay tuned for the update. I expect this to be implemented
soon-ish.

> I don't think there are any issues specifically filed against this request
> unless the new Publisher changes encapsulate what this suggestion is
> entailing?  https://hudson.dev.java.net/issues/show_bug.cgi?id=384



>
>
> Jeff
>
>
> kohsuke wrote:
>>
>> Jason Chaffee wrote:
>>> Why are there not the same post-build-actions in a maven 2 project as
>>> there are in a free-style project?  I would like to use several of those
>>> actions for my maven 2 projects.
>>
>> This is because two project types have different information available
>> to post build actions. So additional code needs to be written to
>> interface with two types, even if bulk of the operations are the same.
>>
>> Can you name wha are those "several of those actions" that you'd like to
>> use?
>>
>>
>> --
>> Kohsuke Kawaguchi
>> Sun Microsystems                   [hidden email]
>>
>>  
>>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment