Skip to content

Conversation

jtnord
Copy link
Member

@jtnord jtnord commented Aug 8, 2025

JENKINS-75968
The system property com.cloudbees.jenkins.support.SupportPlugin.MAX_JENKINS_LOG_ENTRIES_PER_FILE can now be set to tune the amount of log records to have before log rollover.

Testing done

deployed to an instance start as java -Dcom.cloudbees.jenkins.support.SupportPlugin.MAX_LOG_ENTRIES_PER_FILE=10 -jar jenkins.war --httpListenAddress=127.0.0.2
validated that the files are really small (they contain 11 log entries as there is an off by one in the existing code that I am not intending to fix).

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

@jtnord jtnord marked this pull request as ready for review August 8, 2025 14:46
@jtnord jtnord requested a review from a team as a code owner August 8, 2025 14:46
@jtnord jtnord marked this pull request as draft August 8, 2025 14:50
@jtnord jtnord marked this pull request as ready for review August 8, 2025 15:12
The system property `com.cloudbees.jenkins.support.SupportPlugin.MAX_JENKINS_LOG_ENTRIES_PER_FILE` can now be set to tune the amount of log records to have before log rollover.
@Dohbedoh Dohbedoh merged commit e46c0c6 into jenkinsci:master Aug 11, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants