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

2016-04-20 Thread David Aldrich
Hi Daniel

Thanks for the link, we're struggling to set-up the keys, possibly because we 
are connecting to Jenkins from the same machine that it is running on. Anyway, 
we are perservering.

I did find your statement confusing:

>Use SSH key based authentication. Known bug with passwords when anon does not 
>have read access to the job.

>> Hmm, but he had used "--username=daldrich"

>That's my point. It doesn't work like it should.

So your point is that even non-anonymous access, that does have read access to 
the job, has the bug?

Best regards

David

> -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 running job?
> 
> 
> > 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-
> 1.419andlater
> 
> --
> 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/A61E8AB3-2AE5-4A33-
> ADA4-42B670BF723F%40beckweb.net.
> For more options, visit https://groups.google.com/d/optout.
> 
> 
>  Click
> https://www.mailcontrol.com/sr/LItoQrVn!2!GX2PQPOmvUqs4kYhz3KDrV0J7M
> xfXqt59e6qcR2lA5ZhCz9oy1Rs4!d0DP6SAz4pSWoTyPktGDA==  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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0BAC3D89%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


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-1.419andlater

-- 
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/A61E8AB3-2AE5-4A33-ADA4-42B670BF723F%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


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 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. 
>
> Best regards 
>
> David 
>

-- 
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/f0f5bd6a-9503-4e61-b119-5c5fe6f38ff2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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.

Best regards

David

-- 
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/41302A7145AC054FA7A96CFD03835A0A0BAC3A2B%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


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 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/F9EE8E8A-4683-45A9-AFF5-983706F25B9C%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


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 access to the job. 
>
>

-- 
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/cb1f8aca-3051-4025-9a06-ccce96ede39c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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/CFDE4406-3AC5-4329-83CF-5E914519102A%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


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 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: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, 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<mailto:jenkins...@googlegroups.com> 
[mailto:jenkins...@googlegroups.com] On Behalf Of Alex Domoradov
Sent: 19 April 2016 15:23
To: Jenkins Users 
mailto:jenkins...@googlegroups.com>>
Cc: alex...@gmail.com<mailto:alex...@gmail.com>; David Aldrich 
mailto:david....@emea.nec.com>>
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 
mailto:jenkins...@googlegroups.com>>
Cc: David Aldrich 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<mailto:jenkinsci-use...@googlegroups.com>.
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/41302A7145AC054FA7A96CFD03835A0A0BAC36F3%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


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

2016-04-19 Thread Alex Domoradov
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:alex...@gmail.com ] 
> *Sent:* 19 April 2016 17:11
> *To:* Jenkins 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: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 [mailto:jenkins...@googlegroups.com] *On 
> Behalf Of *Alex Domoradov
> *Sent:* 19 April 2016 15:23
> *To:* Jenkins Users 
> *Cc:* alex...@gmail.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 -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 
> *Cc:* David Aldrich 
> *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.
> 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/d409f90f-3b3b-4ade-a5d8-fe0278703fca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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, 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 
[mailto:jenkins...@googlegroups.com] On Behalf Of Alex Domoradov
Sent: 19 April 2016 15:23
To: Jenkins Users >
Cc: alex...@gmail.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 -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 
mailto:jenkins...@googlegroups.com>>
Cc: David Aldrich 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.
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.


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

2016-04-19 Thread Alex Domoradov
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  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *Alex Domoradov
> *Sent:* 19 April 2016 15:23
> *To:* Jenkins Users >
> *Cc:* alex...@gmail.com ; David Aldrich <
> david@emea.nec.com >
> *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 
> *Cc:* David Aldrich 
> *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 .
> 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/7ae2b92b-230c-4f9c-9ce9-1594154b3a12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-04-19 Thread David Aldrich
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: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Alex Domoradov
Sent: 19 April 2016 15:23
To: Jenkins Users 
Cc: alex@gmail.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 -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 >
Cc: David Aldrich >
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-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
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/41302A7145AC054FA7A96CFD03835A0A0BAC356F%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


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

2016-04-19 Thread Alex Domoradov
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 >
> *Cc:* David Aldrich >
> *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-users+unsubscr...@googlegroups.com.
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.


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

2016-04-19 Thread David Aldrich
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 
Cc: David Aldrich 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0BAC34E2%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


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:
>
> 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 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/dfaa15ad-4f5c-403d-bc0b-34a172f1fab5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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/41302A7145AC054FA7A96CFD03835A0A0BAC320B%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.