Keep builds of disabled jobsets that are not hidden. Fixes #18.

[?]
May 11, 2012, 7:11 AM
E2X5OTFSRCIHBIYH2CA4D5CWYILPTGVTZ6OWHQV4NSRYQZRMU3IQC

Dependencies

  • [2] TJK27WSB Open the DB using Hydra::Model::DB->new
  • [3] AEFNBIIW * Merge the GC branch.
  • [4] AFGT66EI hydra: if a project or jobset is hidden (and thus disabled) do not keep builds
  • [5] IN272KZW * Automatically keep all builds in the latest successful release in
  • [6] NEWDDAOF * Allow users to change the value of a build's "keep" flag, which
  • [7] 4X6NS66Q * Keep the most recent builds for each job.
  • [8] ONAQU4BR hydra: handle case where build to keep set to 0
  • [9] E3LZ5H7Q hydra: only use keepnr to determine if builds should be kept
  • [*] WZ3AEJ67 * hydra_update_gc_roots.pl registers build outputs that should be kept

Change contents

  • replacement in src/script/hydra-update-gc-roots at line 77
    [3.577][3.0:71]()
    # If the jobset has been disabled for more than one week, than
    [3.577]
    [3.71]
    # If the jobset has been hidden and disabled for more than one week, than
  • replacement in src/script/hydra-update-gc-roots at line 79
    [3.112][2.965:1066]()
    if ($jobset->enabled == 0 && (time() - ($jobset->lastcheckedtime || 0) > (7 * 24 * 3600))) {
    [3.112]
    [3.206]
    if ($jobset->enabled == 0 && ($project->hidden == 1 || $jobset->hidden == 1) && (time() - ($jobset->lastcheckedtime || 0) > (7 * 24 * 3600))) {