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]> 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]. > 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]. For more options, visit https://groups.google.com/groups/opt_out.
