本文整理了Java中hudson.model.Project.getName()
方法的一些代码示例,展示了Project.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.getName()
方法的具体详情如下:
包路径:hudson.model.Project
类名称:Project
方法名:getName
暂无
代码示例来源:origin: hudson.plugins/project-inheritance
public int compareTo(Project o) {
return this.name.compareTo(o.getName());
}
代码示例来源:origin: jenkinsci/junit-plugin
@Before
public void setUp() throws Exception {
List<FreeStyleProject> projects = rule.jenkins.getAllItems(FreeStyleProject.class);
Project theProject = null;
for (Project p : projects) {
if (p.getName().equals(PROJECT_NAME)) theProject = p;
}
assertNotNull("We should have a project named " + PROJECT_NAME, theProject);
project = (FreeStyleProject) theProject;
}
内容来源于网络,如有侵权,请联系作者删除!