本文整理汇总了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
}