Daniel, i'm experiencing the same exact problem with CreateProjectFromXML. Your answer seems to solution this problem. But i can't quite understand the meaning of your answer. Could you be more explicite?
Thanks Michel Leclerc On Friday, February 28, 2014 at 3:23:58 PM UTC-5, Daniel Beck wrote: > > Folder#createProjectFromXML(String,InputStream). It's from the > ModifiableTopLevelItemGroup interface that both Jenkins and Folder > implement. > > On 28.02.2014, at 17:18, Glenn V <[email protected] <javascript:>> > wrote: > > > Hi, > > > > I'm using the scriptler plugin to write a groovy script using the > Jenkins api, that will clone a set of jobs. With > jenkins.model.Jenkins.createProjectFromXML(String name, InputStream xml) I > can create new jobs just fine, but that only seems to create top level > items. > > > > Because I use the "Cloudbees Folder" plugin to structure my jobs I would > like to create the new jobs inside an existing folder. Is there a way to do > this? > > > > Any help appreciated, > > > > Glenn > > > > > > > > -- > > You received this message because you are subscribed to the Google > Groups "Jenkins Users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] <javascript:>. > > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/140a2346-75bc-4022-96e1-de339858b0de%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
