logo       

Re: How to enable a publisher by default?: msg#00102

java.hudson.user

Subject: Re: How to enable a publisher by default?

I guess I can call addPublisher() from a JobListener, but still - is there another way?

On 1/28/07, Eric Crahen < eric.crahen.lists@xxxxxxxxx> wrote:
For some of the plugins I'm writing, I'm creating a global config. I'd like to actually apply this global configuration by default to new Jobs which are created after the global config is set. I'm finding that I actually have to enable the plugin on each job in order to have the opportunity to apply my global settings. In this particular instance, its a Publisher. I wanted to just create a Job and not have to click anything if the global default was acceptable.

Is there some way that I can enable these extra BuildSteps by default? The only way I have found to do this that might get me there is to add a JobListener that listens for new Projects, and when it notices them, it would add the BuildSteps using the global settings as a template. I haven't actually figured what I need to add to the Project to do this, but this would be the general approach I'd take.

Is there a better way?

--

- Eric



--

- Eric
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise