hudson.model.Hudson.createProject()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(126)

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

Hudson.createProject介绍

[英]Creates a new job.
[中]创建一个新的工作。

代码示例

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

/**
 * Creates a new job.
 *
 * @throws IllegalArgumentException
 *      if the project of the given name already exists.
 */
public synchronized TopLevelItem createProject(TopLevelItemDescriptor type, String name) throws IOException {
  return createProject(type, name, true);
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

/**
 * Creates a new job.
 *
 * @throws IllegalArgumentException if the project of the given name already
 * exists.
 */
public synchronized TopLevelItem createProject(TopLevelItemDescriptor type, String name) throws IOException {
  return createProject(type, name, true);
}

代码示例来源:origin: hudson/hudson-2.x

/**
 * Creates a new job.
 *
 * @throws IllegalArgumentException
 *      if the project of the given name already exists.
 */
public synchronized TopLevelItem createProject(TopLevelItemDescriptor type, String name) throws IOException {
  return createProject(type, name, true);
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-test-harness

/**
 * Creates a empty Maven project with the given name.
 *
 * @see #configureDefaultMaven()
 */
protected MavenModuleSet createMavenProject(String name) throws IOException {
  return hudson.createProject(MavenModuleSet.class,name);
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-test-framework

protected MatrixProject createMatrixProject(String name) throws IOException {
  return hudson.createProject(MatrixProject.class,name);
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

/**
 * Creates a new job.
 *
 * @throws IllegalArgumentException
 *      if the project of the given name already exists.
 */
public synchronized TopLevelItem createProject(TopLevelItemDescriptor type, String name) throws IOException {
  return createProject(type, name, true);
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-test-framework

/**
 * Creates a empty Maven project with the given name.
 *
 * @see #configureDefaultMaven()
 */
protected MavenModuleSet createMavenProject(String name) throws IOException {
  return hudson.createProject(MavenModuleSet.class,name);
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-test-harness

protected FreeStyleProject createFreeStyleProject(String name) throws IOException {
  return hudson.createProject(FreeStyleProject.class,name);
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-test-harness

protected MatrixProject createMatrixProject(String name) throws IOException {
  return hudson.createProject(MatrixProject.class,name);
}

代码示例来源:origin: org.eclipse.hudson/hudson-test-framework

protected FreeStyleProject createFreeStyleProject(String name) throws IOException {
  return hudson.createProject(FreeStyleProject.class, name);
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-test-framework

protected FreeStyleProject createFreeStyleProject(String name) throws IOException {
  return hudson.createProject(FreeStyleProject.class,name);
}

代码示例来源:origin: org.eclipse.hudson/hudson-test-framework

protected MatrixProject createMatrixProject(String name) throws IOException {
  return hudson.createProject(MatrixProject.class, name);
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

/**
 * Creates a new job.
 *
 * <p>
 * This version infers the descriptor from the type of the top-level item.
 *
 * @throws IllegalArgumentException
 *      if the project of the given name already exists.
 */
public synchronized <T extends TopLevelItem> T createProject(Class<T> type, String name) throws IOException {
  return type.cast(createProject((TopLevelItemDescriptor) getDescriptor(type), name));
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

/**
 * Creates a new job.
 *
 * <p>
 * This version infers the descriptor from the type of the top-level item.
 *
 * @throws IllegalArgumentException if the project of the given name already
 * exists.
 */
public synchronized <T extends TopLevelItem> T createProject(Class<T> type, String name) throws IOException {
  return type.cast(createProject((TopLevelItemDescriptor) getDescriptor(type), name));
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

/**
 * Creates a new job.
 *
 * <p>
 * This version infers the descriptor from the type of the top-level item.
 *
 * @throws IllegalArgumentException
 *      if the project of the given name already exists.
 */
public synchronized <T extends TopLevelItem> T createProject(Class<T> type, String name) throws IOException {
  return type.cast(createProject((TopLevelItemDescriptor) getDescriptor(type), name));
}

代码示例来源:origin: hudson/hudson-2.x

/**
 * Creates a new job.
 *
 * <p>
 * This version infers the descriptor from the type of the top-level item.
 *
 * @throws IllegalArgumentException
 *      if the project of the given name already exists.
 */
public synchronized <T extends TopLevelItem> T createProject(Class<T> type, String name) throws IOException {
  return type.cast(createProject((TopLevelItemDescriptor) getDescriptor(type), name));
}

相关文章

Hudson类方法