當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。