Define execution order of post build actions

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

Define execution order of post build actions

Jari Louvem
Hi guys!!

Is there a way to define the execution order of the post build actions? I have a plug-in that depends on the result of another publisher, so this publisher has to be executed before my plug-in.

I add the publisher as dependency on my plug-in's pom.xml file, but it doesn't change anything regarding the execution order. 

Thanks!
Jari Louvem
Reply | Threaded
Open this post in threaded view
|

Re: Define execution order of post build actions

Christopher Orr
On 17/06/2010 01:03, Jari Louvem wrote:
> Is there a way to define the execution order of the post build actions?
> I have a plug-in that depends on the result of another publisher, so
> this publisher has to be executed before my plug-in.
>
> I add the publisher as dependency on my plug-in's pom.xml file, but it
> doesn't change anything regarding the execution order.

Check out the @Extension(ordinal) annotation:
http://hudson.361315.n4.nabble.com/Guaranteed-build-wrapper-execution-order-td1679896.html

Worked for me: the higher the ordinal, the later it gets executed.

Chris

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

Reply | Threaded
Open this post in threaded view
|

Re: Define execution order of post build actions

Jari Louvem
Hi Chris!

Thanks a lot! It works nice for me!

One details, for me the higher the ordinal, earlier the publisher gets executed. So I put a negative value and it worked fine...

Jari

On Fri, Jun 18, 2010 at 6:49 PM, Christopher Orr <[hidden email]> wrote:
On 17/06/2010 01:03, Jari Louvem wrote:
Is there a way to define the execution order of the post build actions?
I have a plug-in that depends on the result of another publisher, so
this publisher has to be executed before my plug-in.

I add the publisher as dependency on my plug-in's pom.xml file, but it
doesn't change anything regarding the execution order.

Check out the @Extension(ordinal) annotation:
http://hudson.361315.n4.nabble.com/Guaranteed-build-wrapper-execution-order-td1679896.html

Worked for me: the higher the ordinal, the later it gets executed.

Chris

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