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

Matrix jobs does not automatically remove old builds for configurations

    XMLWordPrintable

Details

    Description

      Hello

      I'm reporting an important issue on Jenkins with matrix build. The 'Discard Old Builds' setting doesn't remove builds in configuration, leading to increase disk usage without limit.

      Here is the behavior :

      • the master job is correctly cleaned, for instance, after a month if configured so, the artifacts are dropped and the build are correctly deleted
      • however this is not the case for the configuration builds, if i go into the page of one I can see a very long list of builds not having been deleted (so this is not synchronized with the 'master').
        The files in

      ~/jenkins/jobs/MyJobName/configurations/axis-FOO/foo/axis-BAR/bar/builds
      are no deleted while
      ~/jenkins/jobs/MyJobName/builds/
      are correctly deleted.

      Also, disk usage is not correctly computed in the disk usage space : the size of the configuration are not taken in account.
      This leads on my build machine a complete saturation of the disks after 1 week of work. I think this is a very critical issue.

      Thanks,
      Gaetan

      Attachments

        Issue Links

          Activity

            Code changed in jenkins
            User: Oliver Gondža
            Path:
            src/main/java/hudson/matrix/MatrixBuild.java
            src/main/resources/hudson/matrix/MatrixBuild/confirmDeleteAll.jelly
            src/main/resources/hudson/matrix/MatrixBuild/confirmDeleteAll_de.properties
            src/main/resources/hudson/matrix/MatrixBuild/confirmDeleteAll_es.properties
            src/main/resources/hudson/matrix/MatrixBuild/confirmDeleteAll_ja.properties
            src/main/resources/hudson/matrix/MatrixBuild/confirmDeleteAll_pt.properties
            src/main/resources/hudson/matrix/MatrixBuild/confirmDeleteAll_ru.properties
            src/main/resources/hudson/matrix/MatrixBuild/confirmDeleteAll_zh_TW.properties
            src/main/resources/hudson/matrix/MatrixBuild/delete.jelly
            src/main/resources/hudson/matrix/MatrixBuild/delete_ca.properties
            src/main/resources/hudson/matrix/MatrixBuild/delete_cs.properties
            src/main/resources/hudson/matrix/MatrixBuild/delete_de.properties
            src/main/resources/hudson/matrix/MatrixBuild/delete_es.properties
            src/main/resources/hudson/matrix/MatrixBuild/delete_ja.properties
            src/main/resources/hudson/matrix/MatrixBuild/delete_ko.properties
            src/main/resources/hudson/matrix/MatrixBuild/delete_pl.properties
            src/main/resources/hudson/matrix/MatrixBuild/delete_pt.properties
            src/main/resources/hudson/matrix/MatrixBuild/delete_pt_BR.properties
            src/main/resources/hudson/matrix/MatrixBuild/delete_ru.properties
            src/main/resources/hudson/matrix/MatrixBuild/delete_zh_CN.properties
            src/main/resources/hudson/matrix/MatrixBuild/delete_zh_TW.properties
            src/test/groovy/hudson/matrix/MatrixProjectTest.groovy
            http://jenkins-ci.org/commit/matrix-project-plugin/cfdf9e33bdfda54f29f2871ac9dd49c60310c298
            Log:
            Merge pull request #13 from olivergondza/JENKINS-13554

            [FIXED JENKINS-13554] Delete configurations from MatrixBuild#delete

            Compare: https://github.com/jenkinsci/matrix-project-plugin/compare/5b4dedbc7ff0...cfdf9e33bdfd

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: src/main/java/hudson/matrix/MatrixBuild.java src/main/resources/hudson/matrix/MatrixBuild/confirmDeleteAll.jelly src/main/resources/hudson/matrix/MatrixBuild/confirmDeleteAll_de.properties src/main/resources/hudson/matrix/MatrixBuild/confirmDeleteAll_es.properties src/main/resources/hudson/matrix/MatrixBuild/confirmDeleteAll_ja.properties src/main/resources/hudson/matrix/MatrixBuild/confirmDeleteAll_pt.properties src/main/resources/hudson/matrix/MatrixBuild/confirmDeleteAll_ru.properties src/main/resources/hudson/matrix/MatrixBuild/confirmDeleteAll_zh_TW.properties src/main/resources/hudson/matrix/MatrixBuild/delete.jelly src/main/resources/hudson/matrix/MatrixBuild/delete_ca.properties src/main/resources/hudson/matrix/MatrixBuild/delete_cs.properties src/main/resources/hudson/matrix/MatrixBuild/delete_de.properties src/main/resources/hudson/matrix/MatrixBuild/delete_es.properties src/main/resources/hudson/matrix/MatrixBuild/delete_ja.properties src/main/resources/hudson/matrix/MatrixBuild/delete_ko.properties src/main/resources/hudson/matrix/MatrixBuild/delete_pl.properties src/main/resources/hudson/matrix/MatrixBuild/delete_pt.properties src/main/resources/hudson/matrix/MatrixBuild/delete_pt_BR.properties src/main/resources/hudson/matrix/MatrixBuild/delete_ru.properties src/main/resources/hudson/matrix/MatrixBuild/delete_zh_CN.properties src/main/resources/hudson/matrix/MatrixBuild/delete_zh_TW.properties src/test/groovy/hudson/matrix/MatrixProjectTest.groovy http://jenkins-ci.org/commit/matrix-project-plugin/cfdf9e33bdfda54f29f2871ac9dd49c60310c298 Log: Merge pull request #13 from olivergondza/ JENKINS-13554 [FIXED JENKINS-13554] Delete configurations from MatrixBuild#delete Compare: https://github.com/jenkinsci/matrix-project-plugin/compare/5b4dedbc7ff0...cfdf9e33bdfd
            tch Tatyana Che added a comment -

            Version 1.4 (Oct 14, 2014) Automatic deletion of inactive configurations from the disk:
            if "set # builds to keep" axis-builds is not synchronized with the 'master'
            if "days to keep builds" it ok.

            tch Tatyana Che added a comment - Version 1.4 (Oct 14, 2014) Automatic deletion of inactive configurations from the disk: if "set # builds to keep" axis-builds is not synchronized with the 'master' if "days to keep builds" it ok.

            tch, do you mean that parent and child jobs have different number of builds? Which of them is not correct? How to reproduce?

            olivergondza Oliver Gondža added a comment - tch , do you mean that parent and child jobs have different number of builds? Which of them is not correct? How to reproduce?
            tch Tatyana Che added a comment -

            Oliver, not so.
            Before updating the plugin I had a lot of old builds in directories ~ / jenkins / jobs / MyJobName / configurations / axis-FOO /.../ builds and
            ~ / jenkins / jobs / MyJobName / builds /
            After updating the plugin i set "discard old builds" = true,
            "# Builds to keep" = 3. In MyJobName / builds / is 3 builds, in MyJobName / axis are all (> 3). (should be and here and there 3)
            changed to "days to keep builds" = 1. In MyJobName / builds / is 2 builds (by today), in MyJobName / axis are also 2. (everything is OK)

            tch Tatyana Che added a comment - Oliver, not so. Before updating the plugin I had a lot of old builds in directories ~ / jenkins / jobs / MyJobName / configurations / axis-FOO /.../ builds and ~ / jenkins / jobs / MyJobName / builds / After updating the plugin i set "discard old builds" = true, "# Builds to keep" = 3. In MyJobName / builds / is 3 builds, in MyJobName / axis are all (> 3). (should be and here and there 3) changed to "days to keep builds" = 1. In MyJobName / builds / is 2 builds (by today), in MyJobName / axis are also 2. (everything is OK)

            Code changed in jenkins
            User: Oliver Gondža
            Path:
            src/test/java/hudson/matrix/MatrixProjectTest.java
            http://jenkins-ci.org/commit/matrix-project-plugin/d3e68d0d83ce1b6f7a4d49d802666059c823f59f
            Log:
            Fix tests for JENKINS-13554

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: src/test/java/hudson/matrix/MatrixProjectTest.java http://jenkins-ci.org/commit/matrix-project-plugin/d3e68d0d83ce1b6f7a4d49d802666059c823f59f Log: Fix tests for JENKINS-13554

            People

              olivergondza Oliver Gondža
              stibbons stibbons
              Votes:
              6 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: