Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33068

AsyncPeriodicWork log files are overwritten every execution

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None

      The AsyncPeriodicWork log files get overwritten every execution. This is next to useless when the task itself repeats quite often. Better would be to have the files rotate every day so that you can have some hope of figuring out what is going wrong.

          [JENKINS-33068] AsyncPeriodicWork log files are overwritten every execution

          Stephen Connolly created issue -

          Stephen Connolly added a comment - https://github.com/jenkinsci/jenkins/pull/2047
          Stephen Connolly made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          core/src/main/java/hudson/model/AsyncAperiodicWork.java
          core/src/main/java/hudson/model/AsyncPeriodicWork.java
          core/src/main/java/hudson/util/StreamTaskListener.java
          http://jenkins-ci.org/commit/jenkins/8ef4801548bf0ca262666159f4184742a3764b9e
          Log:
          JENKINS-33068 AsyncPeriodicWork/AsyncAperiodicWork log files should be appended and rotated not overwritten each execution

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: core/src/main/java/hudson/model/AsyncAperiodicWork.java core/src/main/java/hudson/model/AsyncPeriodicWork.java core/src/main/java/hudson/util/StreamTaskListener.java http://jenkins-ci.org/commit/jenkins/8ef4801548bf0ca262666159f4184742a3764b9e Log: JENKINS-33068 AsyncPeriodicWork/AsyncAperiodicWork log files should be appended and rotated not overwritten each execution

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          core/src/main/java/hudson/model/AsyncAperiodicWork.java
          core/src/main/java/hudson/model/AsyncPeriodicWork.java
          http://jenkins-ci.org/commit/jenkins/b8584f5047be33fe1477d55ea2a53edc4a3d7b2d
          Log:
          JENKINS-33068 While we are at it, let's move the logs to a subdir

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: core/src/main/java/hudson/model/AsyncAperiodicWork.java core/src/main/java/hudson/model/AsyncPeriodicWork.java http://jenkins-ci.org/commit/jenkins/b8584f5047be33fe1477d55ea2a53edc4a3d7b2d Log: JENKINS-33068 While we are at it, let's move the logs to a subdir

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          core/src/main/java/hudson/model/AsyncAperiodicWork.java
          core/src/main/java/hudson/model/AsyncPeriodicWork.java
          core/src/main/java/hudson/util/StreamTaskListener.java
          http://jenkins-ci.org/commit/jenkins/229408328fbfd58dbb28de64e2b53b85ddd7c66c
          Log:
          JENKINS-33068 Address code review comments

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: core/src/main/java/hudson/model/AsyncAperiodicWork.java core/src/main/java/hudson/model/AsyncPeriodicWork.java core/src/main/java/hudson/util/StreamTaskListener.java http://jenkins-ci.org/commit/jenkins/229408328fbfd58dbb28de64e2b53b85ddd7c66c Log: JENKINS-33068 Address code review comments

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          core/src/main/java/hudson/model/AsyncAperiodicWork.java
          core/src/main/java/hudson/model/AsyncPeriodicWork.java
          http://jenkins-ci.org/commit/jenkins/2316bfba95f0e2c83a449a97424cbec59f75b9bf
          Log:
          JENKINS-33068 Make it clear that we want to force a rotation every start-up

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: core/src/main/java/hudson/model/AsyncAperiodicWork.java core/src/main/java/hudson/model/AsyncPeriodicWork.java http://jenkins-ci.org/commit/jenkins/2316bfba95f0e2c83a449a97424cbec59f75b9bf Log: JENKINS-33068 Make it clear that we want to force a rotation every start-up

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          core/src/main/java/hudson/model/AsyncAperiodicWork.java
          core/src/main/java/hudson/model/AsyncPeriodicWork.java
          http://jenkins-ci.org/commit/jenkins/79271d028714b3c60164e357149170e9e6e78a7b
          Log:
          JENKINS-33068 There was a bug in the rotation logic

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: core/src/main/java/hudson/model/AsyncAperiodicWork.java core/src/main/java/hudson/model/AsyncPeriodicWork.java http://jenkins-ci.org/commit/jenkins/79271d028714b3c60164e357149170e9e6e78a7b Log: JENKINS-33068 There was a bug in the rotation logic

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          core/src/main/java/hudson/model/AsyncAperiodicWork.java
          core/src/main/java/hudson/model/AsyncPeriodicWork.java
          http://jenkins-ci.org/commit/jenkins/1341d565e4527b0eb74609b6825b3a54eb871ccc
          Log:
          JENKINS-33068 Migrate the old logs on first startup

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: core/src/main/java/hudson/model/AsyncAperiodicWork.java core/src/main/java/hudson/model/AsyncPeriodicWork.java http://jenkins-ci.org/commit/jenkins/1341d565e4527b0eb74609b6825b3a54eb871ccc Log: JENKINS-33068 Migrate the old logs on first startup

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          core/src/main/java/hudson/model/AsyncAperiodicWork.java
          http://jenkins-ci.org/commit/jenkins/20926f4dd937cebdf4b355b9a4cbc3bb19a0e364
          Log:
          JENKINS-33068 While I'm here, fix this to getActiveInstance()

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: core/src/main/java/hudson/model/AsyncAperiodicWork.java http://jenkins-ci.org/commit/jenkins/20926f4dd937cebdf4b355b9a4cbc3bb19a0e364 Log: JENKINS-33068 While I'm here, fix this to getActiveInstance()

            stephenconnolly Stephen Connolly
            stephenconnolly Stephen Connolly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: