本文整理了Java中hudson.model.Hudson.createProject()
方法的一些代码示例,展示了Hudson.createProject()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hudson.createProject()
方法的具体详情如下:
包路径:hudson.model.Hudson
类名称: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));
}
内容来源于网络,如有侵权,请联系作者删除!