RE: How to 'Discard old builds' without running job?

2016-04-20 Thread David Aldrich
vid > -Original Message- > From: jenkinsci-users@googlegroups.com [mailto:jenkinsci- > us...@googlegroups.com] On Behalf Of Daniel Beck > Sent: 20 April 2016 11:03 > To: jenkinsci-users@googlegroups.com > Subject: Re: How to 'Discard old builds' without ru

Re: How to 'Discard old builds' without running job?

2016-04-20 Thread Daniel Beck
> On 20.04.2016, at 09:40, David Aldrich wrote: > > Thanks for your reply. Could you please give me a pointer how to use SSH key > based authentication? I'm running the CLI on the Jenkins master - it is > accessing localhost. https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CLI#JenkinsCLI-

Re: How to 'Discard old builds' without running job?

2016-04-20 Thread Alex Domoradov
You have to add public key at user profile page http://jenkins.example.net:8080/user/user_name/configure On Wednesday, April 20, 2016 at 10:40:23 AM UTC+3, David Aldrich wrote: > > Hi Daniel > > > Use SSH key based authentication. Known bug with passwords when anon > does > > not have read acc

RE: How to 'Discard old builds' without running job?

2016-04-20 Thread David Aldrich
Hi Daniel > Use SSH key based authentication. Known bug with passwords when anon does > not have read access to the job. Thanks for your reply. Could you please give me a pointer how to use SSH key based authentication? I'm running the CLI on the Jenkins master - it is accessing localhost. Bes

Re: How to 'Discard old builds' without running job?

2016-04-20 Thread Daniel Beck
> On 20.04.2016, at 08:23, Alex Domoradov wrote: > > Hmm, but he had used "--username=daldrich" That's my point. It doesn't work like it should. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receivi

Re: How to 'Discard old builds' without running job?

2016-04-19 Thread Alex Domoradov
Hmm, but he had used "--username=daldrich" On Tuesday, April 19, 2016 at 11:47:32 PM UTC+3, Daniel Beck wrote: > > > > On 19.04.2016, at 17:06, David Aldrich > wrote: > > > > Any idea why please? > > Use SSH key based authentication. Known bug with passwords when anon does > not have read acc

Re: How to 'Discard old builds' without running job?

2016-04-19 Thread Daniel Beck
> On 19.04.2016, at 17:06, David Aldrich wrote: > > Any idea why please? Use SSH key based authentication. Known bug with passwords when anon does not have read access to the job. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscr

RE: How to 'Discard old builds' without running job?

2016-04-19 Thread David Aldrich
Got the same result: ERROR: No such job 'test' From: Alex Domoradov [mailto:alex@gmail.com] Sent: 19 April 2016 17:14 To: Jenkins Users Cc: alex@gmail.com; David Aldrich Subject: Re: How to 'Discard old builds' without running job? Just for test - rename the jo

Re: How to 'Discard old builds' without running job?

2016-04-19 Thread Alex Domoradov
Users > > *Cc:* alex...@gmail.com ; David Aldrich < > david@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

RE: How to 'Discard old builds' without running job?

2016-04-19 Thread David Aldrich
1.656 From: Alex Domoradov [mailto:alex@gmail.com] Sent: 19 April 2016 17:11 To: Jenkins Users Cc: alex@gmail.com; David Aldrich Subject: Re: How to 'Discard old builds' without running job? It's a really strange. What version of jenkins are you using? On Tuesday, Apri

Re: How to 'Discard old builds' without running job?

2016-04-19 Thread Alex Domoradov
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

RE: How to 'Discard old builds' without running job?

2016-04-19 Thread David Aldrich
com; David Aldrich 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

Re: How to 'Discard old builds' without running job?

2016-04-19 Thread Alex Domoradov
; > David > > > > *From:* Alex Domoradov [mailto:alex...@gmail.com ] > *Sent:* 19 April 2016 14:48 > *To:* Jenkins Users > > *Cc:* David Aldrich > > *Subject:* Re: How to 'Discard old builds' without running job? > > > > You can use je

RE: How to 'Discard old builds' without running job?

2016-04-19 Thread David Aldrich
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 Cc: David Aldrich Subject: Re: How to 'Discard old builds' without running job? You can use jenkins cli java -jar jenkins-cli.jar -s h

Re: How to 'Discard old builds' without running job?

2016-04-19 Thread Alex Domoradov
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: >

How to 'Discard old builds' without running job?

2016-04-19 Thread David Aldrich
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 -- You received this message because you are subscribed to