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

Thinbackup-safemode

XMLWordPrintable

      When Jenkins enters safe mode, if the executor is not shut down, the backup cannot be started, and the safe mode cannot be canceled, and Jenkins cannot run normally.

      I gave the solution:When entering safe mode, force shutdown of running executors,

      This will start the backup normally。In "\src\main\java\org\jvnet\hudson\plugins\thinbackup\utils\Utils.java"

       if (!jenkins.isQuietingDown() && starttime + unit.toMillis(timeout) < System.currentTimeMillis()) {
      LOGGER.info("Force quiet mode for jenkins now and wait until all executors are idle.");
      jenkins.doQuietDown();
      //below is added by wangruxun
      for (final Computer computer : computers) {
      if (computer.countBusy() != 0)

      { computer.interrupt();//Force close the actuator }

      }
      }
      } while (running);
      }

            tofuatgit thomas Fürer
            wangruxun Wang Ruxun
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: