1.656

From: Alex Domoradov [mailto:alex....@gmail.com]
Sent: 19 April 2016 17:11
To: Jenkins Users <jenkinsci-users@googlegroups.com>
Cc: alex....@gmail.com; David Aldrich <david.aldr...@emea.nec.com>
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: jenkins...@googlegroups.com<javascript:> 
[mailto:jenkins...@googlegroups.com<javascript:>] On Behalf Of Alex Domoradov
Sent: 19 April 2016 15:23
To: Jenkins Users <jenkins...@googlegroups.com<javascript:>>
Cc: alex...@gmail.com<javascript:>; David Aldrich 
<david....@emea.nec.com<javascript:>>
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:alex...@gmail.com]
Sent: 19 April 2016 14:48
To: Jenkins Users 
<jenkins...@googlegroups.com<mailto:jenkins...@googlegroups.com>>
Cc: David Aldrich <david....@emea.nec.com<mailto:david....@emea.nec.com>>
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 jenkinsci-use...@googlegroups.com<javascript:>.
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0BAC36CA%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.

Reply via email to