Hi Oliver,

I was able to add the publishers successfully.

Similarily I want to add few other things to the project configuration like

1. BuildWrappers
2. Builders
3. Project Properties

I do not have the Job object captured. I have only an instance of 
AbstractProject. Hence I am unable to proceed furthur.

Can you please help me with this?

On Friday, 25 July 2014 14:55:04 UTC-7, ogondza wrote:
>
> On Fri, 25 Jul 2014 23:15:53 +0200, Karthik V S <karthik...@gmail.com 
> <javascript:>>   
> wrote: 
> > I have a list of publishers that I have to add to my Jenkins job thru   
> > Java 
> > Code and then create the job. 
> > 
> > How is that possible? Any inputs would be greatly appreciated. 
>
> Hi, 
>
> Create the job first, then add publishers. This is done routinely in   
> tests. See   
>
> https://github.com/jenkinsci/jenkins/blob/bfaab5118d079405b82b80301d90e19f39970366/test/src/test/java/hudson/tasks/test/AggregatedTestResultPublisherTest.java#L176-L177
>  
>
> -- 
> oliver 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to