本文整理匯總了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;
}
示例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;
}
示例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);
}
示例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
}