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

Git-parameters plugin causes jobconfighistory to write non-informative entries regarding UUID change

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.332.1; Job Configuration History Version1119.v509e1017356b_; Git Parameter 0.9.15

      Git-parameter plugin set with BRANCH as a name causes Job Configuration History plugin to write non-informative entries regarding UUID change. This lead to a cluttered history in jobconfighistory that takes the space on a server.

       

      Task settings causing the issue:

       

      Steps to reproduce:

      1. create at least 2 branches in your git repo
      2. set any pipeline with Git parameter Name = BRANCH and Branches to build > Branch Specifier (blank for 'any') specifying one of 2 branches
      3. Click Build with Parameters, selecting the branch you specified
      4. Now change task configuration in Configure menu and change the branch name in Branches to build to another branch of your repository
      5. Click Build with Parameters, selecting the branch you specified this time
      6. Open Job Configuration History

       

      Actual result: there are 2 entries appeared with the only change: different UUIDs

      Impact: when the task is run a lot of times during the day, the history in jobconfighistory is cluttered and is not informative, taking up the disk space on a server and can potentially lead to the lack of inodes on a server.

      What is expected: need to get rid of entries in the Job Config History related to UUID change from the Git parameter plugin. Since the task is automatically executed several times a day, need to exclude such logging to save the space and improve readability in the Job Config History.

      There is similar issue already reported, but for another plugin:

      https://issues.jenkins.io/browse/JENKINS-64759

       

          [JENKINS-68279] Git-parameters plugin causes jobconfighistory to write non-informative entries regarding UUID change

          Stephane Odul added a comment -

          We have this problem. It is very annoying because it creates new history files for each pipeline run and this causes us to have millions of useless files on disk, which buries the relevant changes in a mountain of noise. The extra files is an issue since we run our jenkins instances on kubernetes with a persistent EBS volume and Kubernetes will `chown` every single file when re-attaching the volume which delays restarts of the controller and can cause significant downtime as a side effect.

          Stephane Odul added a comment - We have this problem. It is very annoying because it creates new history files for each pipeline run and this causes us to have millions of useless files on disk, which buries the relevant changes in a mountain of noise. The extra files is an issue since we run our jenkins instances on kubernetes with a persistent EBS volume and Kubernetes will `chown` every single file when re-attaching the volume which delays restarts of the controller and can cause significant downtime as a side effect.

          Stephane Odul added a comment -

          FYI this duplicates https://issues.jenkins.io/browse/JENKINS-64759 which I filed in 2021.

          Stephane Odul added a comment - FYI this duplicates https://issues.jenkins.io/browse/JENKINS-64759 which I filed in 2021.

            klimas7 Boguslaw Klimas
            ydavkaeva Yulia
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: