Skip to content

[backport: 2.x] Discard Jenkins build workspace after 30 days (#2806) - #2808

Closed
lprimak wants to merge 1 commit into
apache:2.xfrom
lprimak:backport-jenkins-discard-2.x
Closed

[backport: 2.x] Discard Jenkins build workspace after 30 days (#2806)#2808
lprimak wants to merge 1 commit into
apache:2.xfrom
lprimak:backport-jenkins-discard-2.x

Conversation

@lprimak

@lprimak lprimak commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts Jenkins build retention policy in the project’s declarative pipeline to limit how long build history is kept.

Changes:

  • Adds daysToKeepStr: '30' to the Jenkins logRotator configuration so builds older than 30 days are eligible for discarding (in addition to keeping the last 5 builds/artifacts).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .jenkins.groovy
// When we have test-fails e.g. we don't need to run the remaining steps
skipStagesAfterUnstable()
buildDiscarder(logRotator(numToKeepStr: '5', artifactNumToKeepStr: '5'))
buildDiscarder(logRotator(numToKeepStr: '5', artifactNumToKeepStr: '5', daysToKeepStr: '30'))
@lprimak lprimak closed this Jun 22, 2026
@lprimak
lprimak deleted the backport-jenkins-discard-2.x branch June 22, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants