当前位置: 首页>>代码示例>>Java>>正文


Java SProject.getBuildTypes方法代码示例

本文整理汇总了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));
}
 
开发者ID:timomeinen,项目名称:team-piazza,代码行数:21,代码来源:ProjectMonitorViewState.java

示例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));
}
 
开发者ID:mironych,项目名称:Team-Piazza,代码行数:20,代码来源:ProjectMonitorViewState.java

示例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();
	}
}
 
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:15,代码来源:TeamCityIdResolver.java


注:本文中的jetbrains.buildServer.serverSide.SProject.getBuildTypes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。