Quantcast

Ensuring that the Publisher plugin runs after all installed publisher plugins

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Ensuring that the Publisher plugin runs after all installed publisher plugins

altamash
I am developing a plugin that archives build information and the reports that are generated by various plugins in database. Is there a way to ensure that it runs after all plugins.
Thanks
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Ensuring that the Publisher plugin runs after all installed publisher plugins

Ulli Hafner
On 08/31/2012 06:47 AM, altamash wrote:
> I am developing a plugin that archives build information and the
> reports that are generated by various plugins in database. Is there a
> way to ensure that it runs after all plugins.
> Thanks
You need to provide a small value for 'ordinal' at your extension
annotation: I'm using it to guarantee that the static analysis collector
plug-in (has annotation @Extension(ordinal = 1)) runs after the FindBugs
plugin (has annotation @Extension(ordinal=100.0)).

BTW: I'm not sure how this is affected by the new DnD publisher
reordering feature of Jenkins introduced recently...

Ulli



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Ensuring that the Publisher plugin runs after all installed publisher plugins

altamash
In reply to this post by altamash
Thanks Ulli Hafner. I also found that Notifier runs after all recorders too. And to To run Notifier even after the build is marked as complete, override <a href="eclipse-javadoc:%E2%98%82=app-context/%5C/home%5C/altamesh%5C/.m2%5C/repository%5C/org%5C/jvnet%5C/hudson%5C/main%5C/hudson-core%5C/2.1.2%5C/hudson-core-2.1.2.jar%3Chudson.tasks%28Notifier.class%E2%98%83Notifier%E2%98%82%E2%98%82needsToRunAfterFinalized">needsToRunAfterFinalized to return true.   

On Friday, August 31, 2012 9:47:43 AM UTC+5, altamash wrote:
I am developing a plugin that archives build information and the reports that are generated by various plugins in database. Is there a way to ensure that it runs after all plugins.
Thanks
Loading...