Hi Ramón,

I have tried with one example.
Let´s assume that we have a job "testtest" inside  a first level 
"job_folder_test" folder and inside a second level "sub_folder_item name" 
folder. Please, notice that the name of this folder has a space.
I used the following command to delete the jobs 1 and 2.
java -jar ~/.jenkins/jenkins-cli.jar -s http://localhost:9090 delete-builds 
'job_folder_test/sub_folder_item name/testtest' '1-2'

Again notice that i put the folder path within commas so that the space is 
recognized.
I hope it helps
Best regards,
Jonathan 

El lunes, 23 de junio de 2014, 21:03:51 (UTC+2), Ramón Manjavacas Ortiz 
escribió:
>
> Hi,
>
>    I'm trying to delete a range of builds via jenkins-cli.jar and the jobs 
> are organized in folders via the CloudBees Folder Plugin. For example: 
> folder1/job1.
>
>    The command line is: java -jar jenkins-cli.jar -s 
> http://<server>/jenkins delete-builds <jobName> '10-100' --username xxxx 
> --password yyyy
>
>    My question is how to set a well-formed 'job name',  I've got  the 
> message 'No such job...' when it's used 'job1' or 'folder1/job1'
>
>   Any suggestion?
>
> Thanks,
> Ramón Manjavacas 
>

-- 
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/8bfe9f2c-1a93-43e9-9ae4-9484b6c9d89b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to