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


Java BuildTypeSettings类代码示例

本文整理汇总了Java中jetbrains.buildServer.serverSide.BuildTypeSettings的典型用法代码示例。如果您正苦于以下问题:Java BuildTypeSettings类的具体用法?Java BuildTypeSettings怎么用?Java BuildTypeSettings使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


BuildTypeSettings类属于jetbrains.buildServer.serverSide包,在下文中一共展示了BuildTypeSettings类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: postProcessDiscoveredObjects

import jetbrains.buildServer.serverSide.BuildTypeSettings; //导入依赖的package包/类
@NotNull
@Override
protected List<DiscoveredObject> postProcessDiscoveredObjects(@NotNull BuildTypeSettings settings,
                                                              @NotNull Browser browser,
                                                              @NotNull List<DiscoveredObject> discovered) {
  if (discovered.isEmpty() || settings.getBuildRunners().isEmpty()) {
    return discovered;
  }
  final Set<String> alreadyUsedFiles = getAlreadyUsedFiles(settings);
  if (alreadyUsedFiles.isEmpty()) {
    return discovered;
  }
  discovered.removeIf(o -> alreadyUsedFiles.contains(o.getParameters().get(PowerShellConstants.RUNNER_SCRIPT_FILE)));
  return discovered;
}
 
开发者ID:JetBrains,项目名称:teamcity-powershell,代码行数:16,代码来源:PowerShellRunnerDiscoverer.java

示例2: getAlreadyUsedFiles

import jetbrains.buildServer.serverSide.BuildTypeSettings; //导入依赖的package包/类
private Set<String> getAlreadyUsedFiles(@NotNull final BuildTypeSettings settings) {
  final Set<String> result = new HashSet<>();
  for (BuildRunnerDescriptor runner: settings.getBuildRunners()) {
    if (PowerShellConstants.RUN_TYPE.equals(runner.getType())) {
      final Map<String, String> params = runner.getParameters();
      if (PowerShellScriptMode.FILE.getValue().equals(params.get(PowerShellConstants.RUNNER_SCRIPT_MODE))) {
        result.add(runner.getParameters().get(PowerShellConstants.RUNNER_SCRIPT_FILE));
      }
    }
  }
  return result;
}
 
开发者ID:JetBrains,项目名称:teamcity-powershell,代码行数:13,代码来源:PowerShellRunnerDiscoverer.java

示例3: setUp

import jetbrains.buildServer.serverSide.BuildTypeSettings; //导入依赖的package包/类
@Override
@BeforeMethod
public void setUp() throws Exception {
  super.setUp();
  m = new Mockery();
  myBrowser = m.mock(Browser.class);
  myRootElement = m.mock(Element.class, "root-element");
  myDiscoverer = new PowerShellRunnerDiscoverer();
  myBuildTypeSettings = m.mock(BuildTypeSettings.class);
}
 
开发者ID:JetBrains,项目名称:teamcity-powershell,代码行数:11,代码来源:PowerShellRunnerDiscovererTest.java

示例4: doHandle

import jetbrains.buildServer.serverSide.BuildTypeSettings; //导入依赖的package包/类
protected ModelAndView doHandle(@NotNull final HttpServletRequest request, @NotNull final HttpServletResponse response) throws Exception {
    BuildTypeSettings settings = (BuildTypeSettings)request.getAttribute(ShowTriggerParametersController.BUILD_TYPE_SETTINGS_PARAM);
    BuildTriggerDescriptor triggerDescriptor =
            (BuildTriggerDescriptor)request.getAttribute(ShowTriggerParametersController.SELECTED_TRIGGER_DESCRIPTOR_PARAM);

    DelayedBuildFinishedSettingsBean data = new DelayedBuildFinishedSettingsBean(settings, triggerDescriptor, myProjectManager);

    ModelAndView mv = new ModelAndView(myPluginResourcesPath);
    mv.getModel().put("delayedFinishedBuildTriggerBean", data);
    return mv;
}
 
开发者ID:rhysgodfrey,项目名称:team-city-delayed-finish-build-trigger,代码行数:12,代码来源:DelayedBuildFinishTriggerEditSettingsController.java

示例5: DelayedBuildFinishedSettingsBean

import jetbrains.buildServer.serverSide.BuildTypeSettings; //导入依赖的package包/类
public DelayedBuildFinishedSettingsBean(final BuildTypeSettings settings,
                                   final BuildTriggerDescriptor triggerDescriptor,
                                   final ProjectManager projectManager) {
    mySettings = settings;
    myTriggerDescriptor = triggerDescriptor;
    myProjectManager = projectManager;
}
 
开发者ID:rhysgodfrey,项目名称:team-city-delayed-finish-build-trigger,代码行数:8,代码来源:DelayedBuildFinishedSettingsBean.java

示例6: updateBuildType

import jetbrains.buildServer.serverSide.BuildTypeSettings; //导入依赖的package包/类
public void updateBuildType(@NotNull final HttpServletRequest request,
                            @NotNull final BuildTypeForm form,
                            @NotNull final BuildTypeSettings buildTypeSettings,
                            @NotNull final ActionErrors errors) {
    // do nothing
}
 
开发者ID:JetBrains,项目名称:TeamCity.SonarQubePlugin,代码行数:7,代码来源:EditSQRRunType.java


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