jenkins.model.Jenkins.getNumExecutors()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(205)

本文整理了Java中jenkins.model.Jenkins.getNumExecutors()方法的一些代码示例,展示了Jenkins.getNumExecutors()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jenkins.getNumExecutors()方法的具体详情如下:
包路径:jenkins.model.Jenkins
类名称:Jenkins
方法名:getNumExecutors

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)
)) {

相关文章

Jenkins类方法