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

Discard Old Builds Slicer resets configuration of artifact keeping

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Before:
      a project configured with:
      Days to keep builds: 300
      Max # of builds to keep with artifacts: 90

      After using the slicer to set days to 400 in all projects:
      Days to keep builds: 400
      Max # of builds to keep with artifacts: empty (-1 in config.xml)

        Attachments

          Activity

          Hide
          mdonohue mdonohue added a comment -

          I know that worked at one point. I'll have to take a look to see what might have changed.

          Show
          mdonohue mdonohue added a comment - I know that worked at one point. I'll have to take a look to see what might have changed.
          Hide
          jacob_robertson Jacob Robertson added a comment -

          If you are still experiencing this issue in version 1.19, please re-open with more information on how to reproduce. I have done my best to reproduce, and cannot.

          Show
          jacob_robertson Jacob Robertson added a comment - If you are still experiencing this issue in version 1.19, please re-open with more information on how to reproduce. I have done my best to reproduce, and cannot.
          Hide
          mdp mdp added a comment -

          This is 1.19
          Before the slicing:
          ~/data/jobs$ grep -h ToKeep */config.xml|sort|uniq -c
          55 <artifactDaysToKeep>-1</artifactDaysToKeep>
          55 <artifactNumToKeep>10</artifactNumToKeep>
          55 <daysToKeep>366</daysToKeep>
          55 <numToKeep>366</numToKeep>

          And after the slicing:
          ~/data/jobs$ grep -h ToKeep */config.xml|sort|uniq -c
          63 <artifactDaysToKeep>-1</artifactDaysToKeep>
          63 <artifactNumToKeep>-1</artifactNumToKeep>
          8 <daysToKeep>-1</daysToKeep>
          55 <daysToKeep>400</daysToKeep>
          8 <numToKeep>-1</numToKeep>
          55 <numToKeep>366</numToKeep>

          Could you suggest what information would help to diagnose it?

          Show
          mdp mdp added a comment - This is 1.19 Before the slicing: ~/data/jobs$ grep -h ToKeep */config.xml|sort|uniq -c 55 <artifactDaysToKeep>-1</artifactDaysToKeep> 55 <artifactNumToKeep>10</artifactNumToKeep> 55 <daysToKeep>366</daysToKeep> 55 <numToKeep>366</numToKeep> And after the slicing: ~/data/jobs$ grep -h ToKeep */config.xml|sort|uniq -c 63 <artifactDaysToKeep>-1</artifactDaysToKeep> 63 <artifactNumToKeep>-1</artifactNumToKeep> 8 <daysToKeep>-1</daysToKeep> 55 <daysToKeep>400</daysToKeep> 8 <numToKeep>-1</numToKeep> 55 <numToKeep>366</numToKeep> Could you suggest what information would help to diagnose it?
          Hide
          mdp mdp added a comment -

          Additionally when I now try to use the slicer to go back from 400 to 366 nothing changes. I'll check if restart helps when current builds stop and I can restart Jenkins.

          Show
          mdp mdp added a comment - Additionally when I now try to use the slicer to go back from 400 to 366 nothing changes. I'll check if restart helps when current builds stop and I can restart Jenkins.
          Hide
          jacob_robertson Jacob Robertson added a comment -

          okay, based on your follow up I was able to recreate it. Maybe I didn't read your original explanation closely enough, but the xml snippets made it very clear what I was trying to reproduce. I will look into this.

          Show
          jacob_robertson Jacob Robertson added a comment - okay, based on your follow up I was able to recreate it. Maybe I didn't read your original explanation closely enough, but the xml snippets made it very clear what I was trying to reproduce. I will look into this.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: jacob_robertson
          Path:
          pom.xml
          src/main/java/configurationslicing/logrotator/LogRotationSlicer.java
          src/test/java/configurationslicing/LogRotationSlicerTest.java
          http://jenkins-ci.org/commit/configurationslicing-plugin/a533f37dd2d32a4de6f8dc3ea5577d13946e6d9a
          Log:
          [FIXED JENKINS-8194]

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: jacob_robertson Path: pom.xml src/main/java/configurationslicing/logrotator/LogRotationSlicer.java src/test/java/configurationslicing/LogRotationSlicerTest.java http://jenkins-ci.org/commit/configurationslicing-plugin/a533f37dd2d32a4de6f8dc3ea5577d13946e6d9a Log: [FIXED JENKINS-8194]
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: jacob_robertson
          Path:
          pom.xml
          src/main/java/configurationslicing/logrotator/LogRotationSlicer.java
          src/test/java/configurationslicing/LogRotationSlicerTest.java
          http://jenkins-ci.org/commit/configurationslicing-plugin/a533f37dd2d32a4de6f8dc3ea5577d13946e6d9a
          Log:
          [FIXED JENKINS-8194]

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: jacob_robertson Path: pom.xml src/main/java/configurationslicing/logrotator/LogRotationSlicer.java src/test/java/configurationslicing/LogRotationSlicerTest.java http://jenkins-ci.org/commit/configurationslicing-plugin/a533f37dd2d32a4de6f8dc3ea5577d13946e6d9a Log: [FIXED JENKINS-8194]
          Hide
          jacob_robertson Jacob Robertson added a comment -

          fixed in version 1.20 which is now available

          Show
          jacob_robertson Jacob Robertson added a comment - fixed in version 1.20 which is now available

            People

            • Assignee:
              mdonohue mdonohue
              Reporter:
              mdp mdp
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: