本文整理了Java中jenkins.model.Jenkins.getQuietPeriod()
方法的一些代码示例,展示了Jenkins.getQuietPeriod()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jenkins.getQuietPeriod()
方法的具体详情如下:
包路径:jenkins.model.Jenkins
类名称:Jenkins
方法名:getQuietPeriod
[英]Gets the system default quiet period.
[中]获取系统默认的静默期。
代码示例来源:origin: jenkinsci/jenkins
/**
* Quiet period for the job.
* @return by default, {@link Jenkins#getQuietPeriod}
*/
default int getQuietPeriod() {
return Jenkins.getInstance().getQuietPeriod();
}
代码示例来源:origin: jenkinsci/jenkins
public int getQuietPeriod() {
return quietPeriod!=null ? quietPeriod : Jenkins.getInstance().getQuietPeriod();
}
代码示例来源:origin: jenkinsci/jenkins
public int getQuietPeriod() {
return Jenkins.get().getQuietPeriod();
}
代码示例来源:origin: jenkinsci/configuration-as-code-plugin
@Test
public void loadFromCASC_JENKINS_CONFIG() {
Jenkins j = Jenkins.getInstance();
assertEquals("configuration as code - JenkinsConfigTest", j.getSystemMessage());
assertEquals(10, j.getQuietPeriod());
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
/**
* Quiet period for the job.
* @return by default, {@link Jenkins#getQuietPeriod}
*/
default int getQuietPeriod() {
return Jenkins.getInstance().getQuietPeriod();
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
public int getQuietPeriod() {
return quietPeriod!=null ? quietPeriod : Jenkins.getInstance().getQuietPeriod();
}
代码示例来源:origin: org.jenkins-ci.plugins.workflow/workflow-job
@Override public int getQuietPeriod() {
return quietPeriod != null ? quietPeriod : Jenkins.getActiveInstance().getQuietPeriod();
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
public int getQuietPeriod() {
return Jenkins.getInstance().getQuietPeriod();
}
代码示例来源:origin: nishio-dens/bitbucket-pullrequest-builder-plugin
public QueueTaskFuture<?> startJob(BitbucketCause cause) {
Map<String, ParameterValue> values = this.getDefaultParameters();
if (getCancelOutdatedJobs()) {
cancelPreviousJobsInQueueThatMatch(cause);
abortRunningJobsThatMatch(cause);
}
ParameterizedJobMixIn scheduledJob = new ParameterizedJobMixIn() {
@Override
protected Job asJob() {
return job;
}
};
return scheduledJob.scheduleBuild2(
this.getInstance().getQuietPeriod(),
new CauseAction(cause),
new ParametersAction(new ArrayList<ParameterValue>(values.values())),
new RevisionParameterAction(cause.getSourceCommitHash())
);
}
代码示例来源:origin: com.cisco.step.jenkins.plugins/jenkow-plugin
if (!wrappers.contains(wrapper.getDescriptor())) wrappers.add(wrapper);
p.scheduleBuild2(jenkins.getQuietPeriod(),new WorkflowCause("triggered by workflow"),ja);
return;
代码示例来源:origin: jenkinsci/ghprb-plugin
Jenkins.getInstance().getQuietPeriod(),
new CauseAction(cause),
new GhprbParametersAction(values),
代码示例来源:origin: org.jenkins-ci.plugins/pipeline-build-step
quietPeriod = Jenkins.getActiveInstance().getQuietPeriod();
代码示例来源:origin: jenkinsci/pipeline-model-definition-plugin
@Issue("JENKINS-51227")
@Test
public void quietPeriodRemoved() throws Exception {
WorkflowRun b = getAndStartNonRepoBuild("quietPeriod");
j.assertBuildStatusSuccess(j.waitForCompletion(b));
WorkflowJob job = b.getParent();
assertEquals(15, job.getQuietPeriod());
job.setDefinition(new CpsFlowDefinition(pipelineSourceFromResources("propsTriggersParamsRemoved"), true));
j.buildAndAssertSuccess(job);
assertEquals(j.jenkins.getQuietPeriod(), job.getQuietPeriod());
}
内容来源于网络,如有侵权,请联系作者删除!