Discard old build artifacts?

45 views
Skip to first unread message

James Green

unread,
Jul 20, 2017, 12:38:24 PM7/20/17
to jenkins...@googlegroups.com
I don't want to remove the entire job - having the logs of what the SCM commit was and build output logs is really useful alongside the Jenkins build number.

But I'm generating gigs of artifacts that I don't need. Is there a way of discarding these within a Jenkinsfile?

Thanks,

James

Breitbach, Steffen

unread,
Jul 21, 2017, 2:05:32 AM7/21/17
to jenkins...@googlegroups.com

Hi James,

 

I think the Log Rotator Plugin does what you're looking for. Check out https://github.com/jenkinsci/job-dsl-plugin/wiki/The-Configure-Block

 

Steffen

--
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/CAMH6%2BawDBdLSg4x7k4BhF--sFDHMMxx%2Ba%2BNyx79a-qkzwgZC8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Dirk Heinrichs

unread,
Jul 21, 2017, 2:09:05 AM7/21/17
to jenkins...@googlegroups.com
On 21.07.2017 08:05, Breitbach, Steffen wrote:

I think the Log Rotator Plugin does what you're looking for. Check out https://github.com/jenkinsci/job-dsl-plugin/wiki/The-Configure-Block
 
From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of James Green
Subject: Discard old build artifacts?

But I'm generating gigs of artifacts that I don't need. Is there a way of discarding these within a Jenkinsfile?

JobDSL != Jenkinsfile

Bye...

    Dirk
--
Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenTextTM Discovery | Recommind
Email: dhei...@opentext.com
Website: www.recommind.de

Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach

Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon Davies, Roger Illing, Registergericht Amtsgericht Bonn, Registernummer HRB 10646

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.

Breitbach, Steffen

unread,
Jul 21, 2017, 2:28:14 AM7/21/17
to jenkins...@googlegroups.com

--

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.

James Green

unread,
Jul 21, 2017, 5:59:50 AM7/21/17
to jenkins...@googlegroups.com
Hi,

Sorry but how does this retain the logs forever but discard the artifacts? Reading the example I would expect the logs to be rotated and the artifacts to be maintained which is the opposite.

Where is the documentation for the other options?

Thanks,

James


To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5E63738AB9896844AF1601A1D094677317A71A45%40SMBXKO1.cgm.ag.
Reply all
Reply to author
Forward
0 new messages