Got the same result: ERROR: No such job 'test'
From: Alex Domoradov [mailto:[email protected]] Sent: 19 April 2016 17:14 To: Jenkins Users <[email protected]> Cc: [email protected]; David Aldrich <[email protected]> Subject: Re: How to 'Discard old builds' without running job? Just for test - rename the job just to "test" for example and try again On Tuesday, April 19, 2016 at 7:12:15 PM UTC+3, David Aldrich wrote: 1.656 From: Alex Domoradov [mailto:[email protected]<javascript:>] Sent: 19 April 2016 17:11 To: Jenkins Users <[email protected]<javascript:>> Cc: [email protected]<javascript:>; David Aldrich <[email protected]<javascript:>> Subject: Re: How to 'Discard old builds' without running job? It's a really strange. What version of jenkins are you using? On Tuesday, April 19, 2016 at 6:06:56 PM UTC+3, David Aldrich wrote: Hi Alex This isn’t working for me. I see: $ java -jar /var/lib/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8090/jenkins/ list-jobs --username=daldrich Check_svn_config $ java -jar /var/lib/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8090/jenkins/ delete-builds Check_svn_config 1514-1515 --username=daldrich ERROR: No such job 'Check_svn_config' Any idea why please? David From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Alex Domoradov Sent: 19 April 2016 15:23 To: Jenkins Users <[email protected]<mailto:[email protected]>> Cc: [email protected]<mailto:[email protected]>; David Aldrich <[email protected]<mailto:[email protected]>> Subject: Re: How to 'Discard old builds' without running job? 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]] Sent: 19 April 2016 14:48 To: Jenkins Users <[email protected]<mailto:[email protected]>> Cc: David Aldrich <[email protected]<mailto:[email protected]>> 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]<mailto:[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<https://groups.google.com/d/msgid/jenkinsci-users/8a5a84e2-698d-43a3-ae34-59633bcfd687%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- 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/41302A7145AC054FA7A96CFD03835A0A0BAC36F3%40EX10MBX02.EU.NEC.COM. For more options, visit https://groups.google.com/d/optout.
