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

Disk usage plugin write job config.xml after every build

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • disk-usage-plugin
    • None

      With writing data in the config.xml of jobs show the job config history plugin a change of this file after every build.
      e.g.

          <hudson.plugins.disk__usage.DiskUsageProperty plugin="disk-usage@0.22">
            <diskUsageWithoutBuilds>5475</diskUsageWithoutBuilds>
            
            <slaveWorkspacesUsage class="concurrent-hash-map">
              <entry>
                <string>xxxxxxxx</string>
                <concurrent-hash-map>
                  <entry>
                    <string>xxxxxxx</string>
                    <long>292888</long>
                  </entry>
                </concurrent-hash-map>
              </entry>
            </slaveWorkspacesUsage>
          </hudson.plugins.disk__usage.DiskUsageProperty>
          
      

      IMHO is the config.xml not the right place to write this kind of information.

          [JENKINS-20176] Disk usage plugin write job config.xml after every build

          Stefan Brausch created issue -

          It is due to job workspace size, saving it into build causes multiple workspace sizes (workspace is done for job not for build). I will think about another solution.

          Lucie Votypkova added a comment - It is due to job workspace size, saving it into build causes multiple workspace sizes (workspace is done for job not for build). I will think about another solution.

          I think the same should be for diskUsageWithoutBuilds - it is saved every time its counted.

          Lucie Votypkova added a comment - I think the same should be for diskUsageWithoutBuilds - it is saved every time its counted.

          Paul Nyheim added a comment -

          I agree - this should not be written to config.xml It is especially irritating when using the JobConfigHistory plugin where it causes every build to be listed as a change of config - whereas one is usually only interested in config changes made by users...

          Paul Nyheim added a comment - I agree - this should not be written to config.xml It is especially irritating when using the JobConfigHistory plugin where it causes every build to be listed as a change of config - whereas one is usually only interested in config changes made by users...

          moa_arosii added a comment -

          Also works badly together with the SCM Sync Configuration plugin as updating the config.xml triggers a SCM configuration checkin.

          moa_arosii added a comment - Also works badly together with the SCM Sync Configuration plugin as updating the config.xml triggers a SCM configuration checkin.

          Ok I will move information about disk usage into another file (some disk-usage.xml) as soon as possible. Thanks.

          Lucie Votypkova added a comment - Ok I will move information about disk usage into another file (some disk-usage.xml) as soon as possible. Thanks.

          Dan Albu added a comment -

          v 1.536
          Yes i have the same issue and is rather irritating when you build every 10 min a job.

          Dan Albu added a comment - v 1.536 Yes i have the same issue and is rather irritating when you build every 10 min a job.

          Kayhan Sefat added a comment -

          Yep, this renders the JobConfigHistory plugin utterly pointless as it clutters up the history.

          Kayhan Sefat added a comment - Yep, this renders the JobConfigHistory plugin utterly pointless as it clutters up the history.
          Anders Hammar made changes -
          Link New: This issue is duplicated by JENKINS-20376 [ JENKINS-20376 ]

          Stefan Cordes added a comment -

          Same happens with "Jenkins ver. 1.509.4"

          Stefan Cordes added a comment - Same happens with "Jenkins ver. 1.509.4"

            Unassigned Unassigned
            stefanbrausch Stefan Brausch
            Votes:
            17 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated: