You can get a list of jobs with the following command

# java -jar jenkins-cli.jar -s http://localhost:8090/ list-jobs

Hi Alex
>
>  
>
> Thanks for your reply. 
>
>  
>
> $ java -jar /var/lib/jenkins/war/WEB-INF/jenkins-cli.jar -s 
> http://localhost:8090/jenkins/ delete-builds Check_svn_config 1514-1515
>
>  
>
> ERROR: No such job 'Check_svn_config'
>
>  
>
> I do have a job called 'Check_svn_config'. It’s in a certain folder. Do I 
> have to specify a path for it?
>
>  
>
> Best regards
>
>  
>
> David
>
>  
>
> *From:* Alex Domoradov [mailto:[email protected] <javascript:>] 
> *Sent:* 19 April 2016 14:48
> *To:* Jenkins Users <[email protected] <javascript:>>
> *Cc:* David Aldrich <[email protected] <javascript:>>
> *Subject:* Re: How to 'Discard old builds' without running job?
>
>  
>
> You can use jenkins cli
>
> java -jar jenkins-cli.jar -s http://jenkins.example.net:8080/ 
> delete-builds LARGE_JOB BUILD_NUMBER
>
> for e.g.
>
> java -jar jenkins-cli.jar -s http://jenkins.example.net:8080/ 
> delete-builds test-job 10-20
>
> On Tuesday, April 19, 2016 at 1:23:23 PM UTC+3, David Aldrich wrote:
>
> Hi
>
>  
>
> We have a large job that has no 'Discard old builds' setting.
>
>  
>
> I want to set 'Discard old builds' to a sensible value and action it, to 
> delete some old builds, without actually running the job.  Is that possible?
>
>  
>
> Best regards
>
>  
>
> David
>
>  
>
>  
>
> Click here 
> <https://www.mailcontrol.com/sr/W7u1A3zCXG3GX2PQPOmvUjDF5G4QKHNhj!ky277HXGsZckZkCjxU801LOFYk1bkUOpzDTo3yJQYhR!AbTPK7tQ==>
>  
> to report this email as spam.
>

-- 
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/8a5a84e2-698d-43a3-ae34-59633bcfd687%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to