hudson.model.Project.getName()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(0.7k)|赞(0)|评价(0)|浏览(107)

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

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;
}

相关文章