本文整理了Java中hudson.model.Hudson.isQuietingDown()
方法的一些代码示例,展示了Hudson.isQuietingDown()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hudson.isQuietingDown()
方法的具体详情如下:
包路径:hudson.model.Hudson
类名称:Hudson
方法名:isQuietingDown
[英]Returns true if Hudson is quieting down.
No further jobs will be executed unless it can be finished while other current pending builds are still in progress.
[中]如果Hudson正在安静,则返回true。
除非在其他当前挂起的生成仍在进行中时可以完成作业,否则不会执行其他作业。
代码示例来源:origin: org.eclipse.hudson/hudson-core
@Override
public boolean isEnabled() {
return Hudson.getInstance().isQuietingDown();
}
}
代码示例来源:origin: hudson/hudson-2.x
@Override
public boolean isEnabled() {
return Hudson.getInstance().isQuietingDown();
}
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
@Override
public boolean isEnabled() {
return Hudson.getInstance().isQuietingDown();
}
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
@Override
public boolean isEnabled() {
return Hudson.getInstance().isQuietingDown();
}
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-service
public boolean isQuietingDown()
{
return getHudson().isQuietingDown();
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
public static boolean ifBlockedByHudsonShutdown(Task task) {
return Hudson.getInstance().isQuietingDown() && !(task instanceof NonBlockingTask);
}
代码示例来源:origin: org.eclipse.hudson/hudson-service
public boolean isQuietingDown() {
return getHudson().isQuietingDown();
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
public static boolean ifBlockedByHudsonShutdown(Task task) {
return Hudson.getInstance().isQuietingDown() && !(task instanceof NonBlockingTask);
}
代码示例来源:origin: hudson/hudson-2.x
public static boolean ifBlockedByHudsonShutdown(Task task) {
return Hudson.getInstance().isQuietingDown() && !(task instanceof NonBlockingTask);
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
public static boolean ifBlockedByHudsonShutdown(Task task) {
return Hudson.getInstance().isQuietingDown() && !(task instanceof NonBlockingTask);
}
代码示例来源:origin: jenkinsci/thin-backup-plugin
if (!hudson.isQuietingDown() && starttime + unit.toMillis(timeout) < System.currentTimeMillis()) {
LOGGER.info("Force quiet mode for jenkins now and wait until all executors are idle.");
hudson.doQuietDown();
代码示例来源:origin: jenkinsci/thin-backup-plugin
protected void backupNow(final BackupType type) {
final Hudson hudson = Hudson.getInstance();
final boolean inQuietModeBeforeBackup = hudson.isQuietingDown();
代码示例来源:origin: hudson/hudson-2.x
/**
* Run the SCM trigger with additional build actions. Used by SubversionRepositoryStatus
* to trigger a build at a specific revisionn number.
*
* @param additionalActions
* @since 1.375
*/
public void run(Action[] additionalActions) {
if(Hudson.getInstance().isQuietingDown())
return; // noop
DescriptorImpl d = getDescriptor();
LOGGER.fine("Scheduling a polling for "+job);
if (d.synchronousPolling) {
LOGGER.fine("Running the trigger directly without threading, " +
"as it's already taken care of by Trigger.Cron");
new Runner(additionalActions).run();
} else {
// schedule the polling.
// even if we end up submitting this too many times, that's OK.
// the real exclusion control happens inside Runner.
LOGGER.fine("scheduling the trigger to (asynchronously) run");
d.queue.execute(new Runner(additionalActions));
d.clogCheck();
}
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Run the SCM trigger with additional build actions. Used by SubversionRepositoryStatus
* to trigger a build at a specific revisionn number.
*
* @param additionalActions
* @since 1.375
*/
public void run(Action[] additionalActions) {
if(Hudson.getInstance().isQuietingDown())
return; // noop
DescriptorImpl d = getDescriptor();
LOGGER.fine("Scheduling a polling for "+job);
if (d.synchronousPolling) {
LOGGER.fine("Running the trigger directly without threading, " +
"as it's already taken care of by Trigger.Cron");
new Runner(additionalActions).run();
} else {
// schedule the polling.
// even if we end up submitting this too many times, that's OK.
// the real exclusion control happens inside Runner.
LOGGER.fine("scheduling the trigger to (asynchronously) run");
d.queue.execute(new Runner(additionalActions));
d.clogCheck();
}
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Run the SCM trigger with additional build actions. Used by SubversionRepositoryStatus
* to trigger a build at a specific revisionn number.
*
* @param additionalActions
* @since 1.375
*/
public void run(Action[] additionalActions) {
if(Hudson.getInstance().isQuietingDown())
return; // noop
DescriptorImpl d = getDescriptor();
LOGGER.fine("Scheduling a polling for "+job);
if (d.synchronousPolling) {
LOGGER.fine("Running the trigger directly without threading, " +
"as it's already taken care of by Trigger.Cron");
new Runner(additionalActions).run();
} else {
// schedule the polling.
// even if we end up submitting this too many times, that's OK.
// the real exclusion control happens inside Runner.
LOGGER.fine("scheduling the trigger to (asynchronously) run");
d.queue.execute(new Runner(additionalActions));
d.clogCheck();
}
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Run the SCM trigger with additional build actions. Used by
* SubversionRepositoryStatus to trigger a build at a specific revisionn
* number.
*
* @param additionalActions
* @since 1.375
*/
public void run(Action[] additionalActions) {
if (Hudson.getInstance().isQuietingDown()) {
return; // noop
}
DescriptorImpl d = getDescriptor();
for (SCMedItem job : jobs) {
LOGGER.fine("Scheduling a polling for jobs " + getJobNames());
if (d.synchronousPolling) {
LOGGER.fine("Running the trigger directly without threading, "
+ "as it's already taken care of by Trigger.Cron");
new Runner(job, additionalActions).run();
} else {
// schedule the polling.
// even if we end up submitting this too many times, that's OK.
// the real exclusion control happens inside Runner.
LOGGER.fine("scheduling the trigger to (asynchronously) run");
d.queue.execute(new Runner(job, additionalActions));
d.clogCheck();
}
}
}
代码示例来源:origin: org.jenkins-ci.lib/xtrigger-lib
@Override
public void run() {
AbstractProject project = (AbstractProject) job;
XTriggerDescriptor descriptor = getDescriptor();
ExecutorService executorService = descriptor.getExecutor();
XTriggerLog log = null;
try {
StreamTaskListener listener = new StreamTaskListener(getLogFile());
log = new XTriggerLog(listener);
if (Hudson.getInstance().isQuietingDown()) {
log.info("Jenkins is quieting down.");
} else if (!project.isBuildable()) {
log.info("The job is not buildable. Activate it to poll again.");
} else if (!unblockConcurrentBuild && project.isBuilding()) {
log.info("The job is building. Waiting for next poll.");
} else {
Runner runner = new Runner(getName());
executorService.execute(runner);
}
} catch (Throwable t) {
LOGGER.log(Level.SEVERE, "Severe error during the trigger execution " + t.getMessage());
t.printStackTrace();
} finally {
if (log != null) {
log.closeQuietly();
}
}
}
内容来源于网络,如有侵权,请联系作者删除!