Re: Jenkins api create job in a folder

2015-12-11 Thread Khai Do
An option you might like to explore is to use python-jenkins. We use it to automate folder and job creation. Doc is here: https://python-jenkins.readthedocs.org/en/latest/examples.html#example-7-working-with-jenkins-cloudbees-folders On Thursday, August 20, 2015 at 12:22:19 PM UTC-7, Daniel

Re: Jenkins api create job in a folder

2015-08-20 Thread Daniel Serodio
I think Daniel Beck means that instead of calling Jenkins.createProjectFromXML(...), you find the folder you want and then call folder.createProjectFromXML(...) Regards, Daniel Serodio On Thursday, August 20, 2015 at 1:17:37 PM UTC-3, Michel Leclerc wrote: > > Daniel, > > i'm experiencing the s

Re: Jenkins api create job in a folder

2015-08-20 Thread Michel Leclerc
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 wro

Re: Jenkins api create job in a folder

2014-02-28 Thread Daniel Beck
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 wrote: > Hi, > > I'm using the scriptler plugin to write a groovy script using the Jenkins > api, that will clone a set

Jenkins api create job in a folder

2014-02-28 Thread Glenn V
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