本文整理汇总了Java中jetbrains.buildServer.serverSide.SProject.getBuildTypes方法的典型用法代码示例。如果您正苦于以下问题:Java SProject.getBuildTypes方法的具体用法?Java SProject.getBuildTypes怎么用?Java SProject.getBuildTypes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类jetbrains.buildServer.serverSide.SProject
的用法示例。
在下文中一共展示了SProject.getBuildTypes方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ProjectMonitorViewState
import jetbrains.buildServer.serverSide.SProject; //导入方法依赖的package包/类
public ProjectMonitorViewState(SProject project, UserGroup userGroup, PiazzaConfiguration piazzaConfiguration, PiazzaProjectSettings projectSettings, SUser user) {
this.project = project;
this.piazzaConfiguration = piazzaConfiguration;
this.projectSettings = projectSettings;
builds = new ArrayList<>();
for (SBuildType buildType : project.getBuildTypes()) {
if (hasAtLeastOneBuild(buildType)) {
if (buildType.isAllowExternalStatus()) {
builds.add(new BuildTypeMonitorViewState(buildType, userGroup, piazzaConfiguration.isShowOnFailureOnly()));
}
}
}
for (BuildTypeMonitorViewState build : builds) {
committers.addAll(build.getCommitters());
}
featureBranchesView = new FeatureBranchesMonitorViewState(project, projectSettings, getOrderedBuildTypesOfProjectAndSubprojects(project, user));
}
示例2: ProjectMonitorViewState
import jetbrains.buildServer.serverSide.SProject; //导入方法依赖的package包/类
public ProjectMonitorViewState(SProject project, UserGroup userGroup, PiazzaConfiguration configuration, PiazzaProjectSettings projectSettings, SUser user) {
this.project = project;
this.projectSettings = projectSettings;
builds = new ArrayList<>();
for (SBuildType buildType : project.getBuildTypes()) {
if (hasAtLeastOneBuild(buildType)) {
if (buildType.isAllowExternalStatus()) {
builds.add(new BuildTypeMonitorViewState(buildType, userGroup, configuration.isShowOnFailureOnly()));
}
}
}
for (BuildTypeMonitorViewState build : builds) {
committers.addAll(build.getCommitters());
}
featureBranchesView = new FeatureBranchesMonitorViewState(project, projectSettings, user.getOrderedBuildTypes(project));
}
示例3: getOwnBuildTypes
import jetbrains.buildServer.serverSide.SProject; //导入方法依赖的package包/类
/**
* Finds builds that belong the referenced project. Uses new method getOwnBuildTypes() if available.
* Does not find builds in sub-projects.
* @param project
* @return List of BuildTypes corresponding to what is configured in the project.
*/
public static List<SBuildType> getOwnBuildTypes(SProject project) {
try {
return project.getOwnBuildTypes();
} catch (NoSuchMethodError ex){
LOGGER.log(Level.INFO,ex.getMessage(),ex);
return project.getBuildTypes();
}
}