本文整理了Java中hudson.model.Hudson.doCancelQuietDown()
方法的一些代码示例,展示了Hudson.doCancelQuietDown()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hudson.doCancelQuietDown()
方法的具体详情如下:
包路径:hudson.model.Hudson
类名称:Hudson
方法名:doCancelQuietDown
暂无
代码示例来源:origin: org.jvnet.hudson.main/hudson-service
public void doCancelQuietDown()
{
//securityService.checkPermission(Hudson.ADMINISTER);
getHudson().doCancelQuietDown();
}
代码示例来源:origin: org.eclipse.hudson/hudson-service
public void doCancelQuietDown() {
//securityService.checkPermission(Hudson.ADMINISTER);
getHudson().doCancelQuietDown();
}
代码示例来源:origin: jenkinsci/thin-backup-plugin
} finally {
if (!inQuietModeBeforeBackup)
hudson.doCancelQuietDown();
else
LOGGER.info("Backup process finished, but still in quiet mode as before. The quiet mode needs to be canceled manually, because it is not clear who is putting jenkins/hudson into quiet mode.");
代码示例来源:origin: jenkinsci/thin-backup-plugin
public void doRestore(final StaplerRequest res, final StaplerResponse rsp,
@QueryParameter("restoreBackupFrom") final String restoreBackupFrom,
@QueryParameter("restoreNextBuildNumber") final String restoreNextBuildNumber,
@QueryParameter("restorePlugins") final String restorePlugins) throws IOException {
LOGGER.info("Starting restore operation.");
Hudson.getInstance().checkPermission(Hudson.ADMINISTER);
final Hudson hudson = Hudson.getInstance();
hudson.doQuietDown();
LOGGER.fine("Waiting until executors are idle to perform restore...");
Utils.waitUntilIdle();
try {
final File hudsonHome = hudson.getRootDir();
final Date restoreFromDate = Utils.DISPLAY_DATE_FORMAT.parse(restoreBackupFrom);
final HudsonRestore hudsonRestore = new HudsonRestore(hudsonHome, ThinBackupPluginImpl.getInstance()
.getExpandedBackupPath(), restoreFromDate, "on".equals(restoreNextBuildNumber), "on".equals(restorePlugins));
hudsonRestore.restore();
LOGGER.info("Restore finished.");
} catch (ParseException e) {
LOGGER.severe("Cannot parse restore option. Aborting.");
} catch (final Exception ise) {
LOGGER.severe("Could not restore. Aborting.");
} finally {
hudson.doCancelQuietDown();
rsp.sendRedirect(res.getContextPath() + "/thinBackup");
}
}
内容来源于网络,如有侵权,请联系作者删除!