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

backupBuildsToKeepOnly ignored for job under a folder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • thinbackup-plugin
    • None
    • 2.414.2, ThinBackup 2.0

      ThinBackup includes build archives of all builds despite activation of the backupBuildsToKeepOnly option for jobs that are not at the root of Jenkins but nested in a folder (using Folders plugin).

      If it may help, I suspect an issue in ‎HudsonBackup::backupBuildsFor where hudson.getItem is used whereas I would expect usage of the getItemByFullName method.

      Configuration

      <?xml version='1.1' encoding='UTF-8'?>
      <org.jvnet.hudson.plugins.thinbackup.ThinBackupPluginImpl plugin="thinBackup@2.0">
        <fullBackupSchedule>H 23 * * 1</fullBackupSchedule>
        <diffBackupSchedule>H 23 * * 2-5</diffBackupSchedule>
        <backupPath>/var/lib/jenkins/ThinBackup</backupPath>
        <nrMaxStoredFull>5</nrMaxStoredFull>
        <excludedFilesRegex></excludedFilesRegex>
        <waitForIdle>true</waitForIdle>
        <forceQuietModeTimeout>-1</forceQuietModeTimeout>
        <cleanupDiff>false</cleanupDiff>
        <moveOldBackupsToZipFile>true</moveOldBackupsToZipFile>
        <backupBuildResults>true</backupBuildResults>
        <backupBuildArchive>true</backupBuildArchive>
        <backupPluginArchives>false</backupPluginArchives>
        <backupUserContents>true</backupUserContents>
        <backupConfigHistory>true</backupConfigHistory>
        <backupAdditionalFiles>false</backupAdditionalFiles>
        <backupAdditionalFilesRegex></backupAdditionalFilesRegex>
        <backupNextBuildNumber>false</backupNextBuildNumber>
        <backupBuildsToKeepOnly>true</backupBuildsToKeepOnly>
        <failFast>true</failFast>
      </org.jvnet.hudson.plugins.thinbackup.ThinBackupPluginImpl>
      

            tofuatjava Thomas Fürer
            jonathand131 Jonathan Delizy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: