本文整理了Java中jenkins.model.Jenkins.getNumExecutors()
方法的一些代码示例,展示了Jenkins.getNumExecutors()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jenkins.getNumExecutors()
方法的具体详情如下:
包路径:jenkins.model.Jenkins
类名称:Jenkins
方法名:getNumExecutors
暂无
代码示例来源:origin: jenkinsci/jenkins
public int getNumExecutors() {
return Jenkins.get().getNumExecutors();
}
代码示例来源:origin: jenkinsci/jenkins
hashSource.put(h, Math.max(h.getNumExecutors() * 100, 1));
代码示例来源:origin: jenkinsci/configuration-as-code-plugin
@Test
@ConfiguredWithCode(value = {"merge1.yml", "merge3.yml"}, expected = ConfiguratorException.class)
public void shouldMergeYamlConfig() {
assertEquals("Configured by configuration-as-code-plugin", j.jenkins.getSystemMessage());
assertEquals(0, j.jenkins.getNumExecutors());
assertNotNull(j.jenkins.getNode("agent1"));
assertNotNull(j.jenkins.getNode("agent3"));
}
代码示例来源:origin: jenkinsci/jenkins
|| Jenkins.getInstance().getNumExecutors() < 1
|| Jenkins.getInstance().getMode() == Mode.EXCLUSIVE)
)) {
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
public int getNumExecutors() {
return Jenkins.getInstance().getNumExecutors();
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
hashSource.put(h, Math.max(h.getNumExecutors() * 100, 1));
代码示例来源:origin: org.jenkins-ci.plugins/metrics
Jenkins jenkins = Jenkins.getInstance();
if (jenkins != null) {
if (jenkins.getNumExecutors() > 0) {
nodeCount++;
Computer computer = jenkins.toComputer();
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
|| Jenkins.getInstance().getNumExecutors() < 1
|| Jenkins.getInstance().getMode() == Mode.EXCLUSIVE)
)) {
内容来源于网络,如有侵权,请联系作者删除!