本文整理汇总了Java中jetbrains.buildServer.serverSide.SBuildServer类的典型用法代码示例。如果您正苦于以下问题:Java SBuildServer类的具体用法?Java SBuildServer怎么用?Java SBuildServer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SBuildServer类属于jetbrains.buildServer.serverSide包,在下文中一共展示了SBuildServer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: MsTeamsNotifierAdminPage
import jetbrains.buildServer.serverSide.SBuildServer; //导入依赖的package包/类
protected MsTeamsNotifierAdminPage(@NotNull PagePlaces pagePlaces,
@NotNull PluginDescriptor descriptor,
@NotNull SBuildServer sBuildServer,
@NotNull MsTeamsNotificationMainSettings msteamsMainSettings
) {
super(pagePlaces);
this.sBuildServer = sBuildServer;
this.msteamsMainSettings = msteamsMainSettings;
setPluginName(PLUGIN_NAME);
setIncludeUrl(descriptor.getPluginResourcesPath(PAGE));
jspHome = descriptor.getPluginResourcesPath();
setTabTitle(TAB_TITLE);
ArrayList<String> after = new ArrayList<String>();
after.add(AFTER_PAGE_ID);
ArrayList<String> before = new ArrayList<String>();
before.add(BEFORE_PAGE_ID);
setPosition(PositionConstraint.between(after, before));
register();
Loggers.SERVER.info("MsTeams global configuration page registered");
}
示例2: KubeProfileEditController
import jetbrains.buildServer.serverSide.SBuildServer; //导入依赖的package包/类
public KubeProfileEditController(@NotNull final SBuildServer server,
@NotNull final WebControllerManager web,
@NotNull final PluginDescriptor pluginDescriptor,
@NotNull final AgentPoolManager agentPoolManager,
@NotNull final KubeAuthStrategyProvider authStrategyProvider,
@NotNull final BuildAgentPodTemplateProviders podTemplateProviders,
@NotNull final KubeNamespaceChooserController kubeNamespaceChooserController,
@NotNull final KubeDeploymentChooserController kubeDeploymentChooserController,
@NotNull final KubeDeleteImageDialogController kubeDeleteImageDialogController) {
super(server);
myPluginDescriptor = pluginDescriptor;
myPath = pluginDescriptor.getPluginResourcesPath(EDIT_KUBE_HTML);
myAgentPoolManager = agentPoolManager;
myAuthStrategyProvider = authStrategyProvider;
myPodTemplateProviders = podTemplateProviders;
myKubeNamespaceChooserController = kubeNamespaceChooserController;
myKubeDeploymentChooserController = kubeDeploymentChooserController;
myKubeDeleteImageDialogController = kubeDeleteImageDialogController;
web.registerController(myPath, this);
}
示例3: BuildScanCrumbSummaryExtension
import jetbrains.buildServer.serverSide.SBuildServer; //导入依赖的package包/类
public BuildScanCrumbSummaryExtension(
@NotNull PagePlaces pagePlaces,
@NotNull PluginDescriptor pluginDescriptor,
@NotNull SBuildServer buildServer,
@NotNull BuildScanDisplayArbiter buildScanDisplayArbiter,
@NotNull BuildScanLookup buildScanLookup
) {
super(pagePlaces, PlaceId.BUILD_SUMMARY, "buildScan", pluginDescriptor.getPluginResourcesPath("buildScanCrumbSummary.jsp"));
setPosition(PositionConstraint.last());
this.buildServer = buildServer;
this.buildScanDisplayArbiter = buildScanDisplayArbiter;
this.buildScanLookup = buildScanLookup;
LOGGER.info(String.format("Registered %s. %s-%s", getClass().getSimpleName(), pluginDescriptor.getPluginName(), pluginDescriptor.getPluginVersion()));
}
开发者ID:etiennestuder,项目名称:teamcity-build-scan-plugin,代码行数:17,代码来源:BuildScanCrumbSummaryExtension.java
示例4: Controller
import jetbrains.buildServer.serverSide.SBuildServer; //导入依赖的package包/类
public Controller(@NotNull SBuildServer server,
@NotNull PluginDescriptor descriptor,
@NotNull ServerPaths serverPaths,
@NotNull WebControllerManager manager,
@NotNull ServerConfigurations configurations,
@NotNull final ProjectManager projectManager,
@NotNull ProjectSettingsManager projectSettingsManager) throws IOException {
manager.registerController(CONTROLLER_PATH, this);
Controller.configurations = configurations;
this.myProjectManager = projectManager;
this.projectSettingsManager = projectSettingsManager;
this.configFilePath = (new File(serverPaths.getConfigDir(), CONFIG_FILE)).getCanonicalPath();
this.listPagePath = descriptor.getPluginResourcesPath(LIST_PAGE);
this.editPagePath = descriptor.getPluginResourcesPath(EDIT_PAGE);
this.editTemplPagePath = descriptor.getPluginResourcesPath(EDIT_TEMPL_PAGE);
this.errorPagePath = descriptor.getPluginResourcesPath(ERROR_PAGE);
}
示例5: AdminPage
import jetbrains.buildServer.serverSide.SBuildServer; //导入依赖的package包/类
public AdminPage(@NotNull SBuildServer server,
@NotNull PagePlaces pagePlaces,
@NotNull PluginDescriptor descriptor) {
super(pagePlaces);
setPluginName(Util.PLUGIN_NAME);
setIncludeUrl(descriptor.getPluginResourcesPath(PAGE));
addCssFile(descriptor.getPluginResourcesPath("css/ServerConfigurationsAdminPage.css"));
addJsFile(descriptor.getPluginResourcesPath("js/ServerConfigurationsAdminPage.js"));
addCssFile("/css/forms.css");
setTabTitle(TAB_TITLE);
ArrayList<String> after = new ArrayList<String>();
after.add(AFTER_PAGE_ID);
ArrayList<String> before = new ArrayList<String>();
before.add(BEFORE_PAGE_ID);
setPosition(PositionConstraint.between(after, before));
register();
}
示例6: AnalyticsTrackerImpl
import jetbrains.buildServer.serverSide.SBuildServer; //导入依赖的package包/类
public AnalyticsTrackerImpl(@NotNull final PluginDescriptor pluginDescriptor, SBuildServer buildServer, @NotNull MetricRegistry metricRegistry, BuildTriggerProperties buildTriggerProperties) {
this.metricRegistry = metricRegistry;
this.buildTriggerProperties = buildTriggerProperties;
this.pluginVersion = pluginDescriptor.getPluginVersion();
this.teamCityVersion = buildServer.getFullServerVersion();
String trackingId = pluginDescriptor.getParameterValue("AnalyticsTrackingId");
boolean enabled = this.buildTriggerProperties.isAnalyticsEnabled();
LOG.info(String.format("AnalyticsTrackerImpl instantiated for plugin version %s in teamcity version %s. Tracking enabled: %s.",
pluginVersion, teamCityVersion, enabled));
try {
GoogleAnalyticsConfig config = new GoogleAnalyticsConfig()
.setEnabled(enabled);
ga = new GoogleAnalytics(config, trackingId);
}
catch (Throwable e) {
LOG.warn("Analytics initialisation failed. Disabling analytics", e);
}
}
开发者ID:matt-richardson,项目名称:teamcity-octopus-build-trigger-plugin,代码行数:20,代码来源:AnalyticsTrackerImpl.java
示例7: YammerAdminPage
import jetbrains.buildServer.serverSide.SBuildServer; //导入依赖的package包/类
public YammerAdminPage(@NotNull PagePlaces pagePlaces,
@NotNull PluginDescriptor descriptor,
@NotNull SBuildServer sBuildServer,
@NotNull YammerNotificationMainSettings yammerMainSettings
) {
super(pagePlaces);
this.sBuildServer = sBuildServer;
this.yammerMainSettings = yammerMainSettings;
setPluginName(PLUGIN_NAME);
setIncludeUrl(descriptor.getPluginResourcesPath(ADMIN_PAGE));
jspHome = descriptor.getPluginResourcesPath();
setTabTitle(TAB_TITLE);
ArrayList<String> after = new ArrayList<String>();
after.add(AFTER_PAGE_ID);
ArrayList<String> before = new ArrayList<String>();
before.add(BEFORE_PAGE_ID);
setPosition(PositionConstraint.between(after, before));
register();
}
示例8: PasswordResetController
import jetbrains.buildServer.serverSide.SBuildServer; //导入依赖的package包/类
public PasswordResetController(final SBuildServer sBuildServer,
final WebControllerManager webControllerManager,
final PluginDescriptor pluginDescriptor,
final AuthorizationInterceptor authorisationInterceptor,
final UserModel userModel,
final SBuildServer buildServer,
final SmtpConfigProcessor smtpConfigProcessor
) {
super(sBuildServer);
this.webControllerManager = webControllerManager;
this.pluginDescriptor = pluginDescriptor;
this.authorisationInterceptor = authorisationInterceptor;
this.userModel = userModel;
this.buildServer = buildServer;
this.smtpConfigProcessor = smtpConfigProcessor;
this.logger = Loggers.SERVER;
}
示例9: testUserAccountRemoved_DoesNothing
import jetbrains.buildServer.serverSide.SBuildServer; //导入依赖的package包/类
@Test
public void testUserAccountRemoved_DoesNothing() throws Exception {
final SBuildServer sBuildServer = mock(SBuildServer.class);
final UsernameMapperConfig mapperConfig = mock(UsernameMapperConfig.class);
final TfsUsernameMapperListener listener = new TfsUsernameMapperListener(sBuildServer, mapperConfig);
User user = mock(User.class);
listener.userAccountRemoved(user);
verifyZeroInteractions(sBuildServer);
verifyZeroInteractions(user);
verifyZeroInteractions(mapperConfig);
verifyZeroInteractions(user);
}
示例10: SlackNotifierAdminPage
import jetbrains.buildServer.serverSide.SBuildServer; //导入依赖的package包/类
protected SlackNotifierAdminPage(@NotNull PagePlaces pagePlaces,
@NotNull PluginDescriptor descriptor,
@NotNull SBuildServer sBuildServer,
@NotNull SlackNotificationMainSettings slackMainSettings
) {
super(pagePlaces);
this.sBuildServer = sBuildServer;
this.slackMainSettings = slackMainSettings;
setPluginName(PLUGIN_NAME);
setIncludeUrl(descriptor.getPluginResourcesPath(PAGE));
jspHome = descriptor.getPluginResourcesPath();
setTabTitle(TAB_TITLE);
ArrayList<String> after = new ArrayList<String>();
after.add(AFTER_PAGE_ID);
ArrayList<String> before = new ArrayList<String>();
before.add(BEFORE_PAGE_ID);
setPosition(PositionConstraint.between(after, before));
register();
Loggers.SERVER.info("Slack global configuration page registered");
}
示例11: MsTeamsNotificationMainSettings
import jetbrains.buildServer.serverSide.SBuildServer; //导入依赖的package包/类
public MsTeamsNotificationMainSettings(SBuildServer server, ServerPaths serverPaths){
this.serverPaths = serverPaths;
Loggers.SERVER.debug(NAME + " :: Constructor called");
this.server = server;
msteamsNotificationMainConfig = new MsTeamsNotificationMainConfig(serverPaths);
}
示例12: MsTeamsNotificationIndexPageController
import jetbrains.buildServer.serverSide.SBuildServer; //导入依赖的package包/类
public MsTeamsNotificationIndexPageController(SBuildServer server, WebControllerManager webManager,
ProjectSettingsManager settings, PluginDescriptor pluginDescriptor, MsTeamsNotificationPayloadManager manager,
MsTeamsNotificationMainSettings configSettings) {
super(server);
myWebManager = webManager;
myServer = server;
mySettings = settings;
myPluginDescriptor = pluginDescriptor;
myMainSettings = configSettings;
myManager = manager;
}
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:12,代码来源:MsTeamsNotificationIndexPageController.java
示例13: MsTeamsNotificationAjaxEditPageController
import jetbrains.buildServer.serverSide.SBuildServer; //导入依赖的package包/类
public MsTeamsNotificationAjaxEditPageController(SBuildServer server, WebControllerManager webManager,
ProjectSettingsManager settings, MsTeamsNotificationProjectSettings whSettings, MsTeamsNotificationPayloadManager manager,
PluginDescriptor pluginDescriptor, MsTeamsNotificationMainSettings mainSettings) {
super(server);
myWebManager = webManager;
myServer = server;
mySettings = settings;
myPluginPath = pluginDescriptor.getPluginResourcesPath();
myManager = manager;
myMainSettings = mainSettings;
}
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:12,代码来源:MsTeamsNotificationAjaxEditPageController.java
示例14: MsTeamsNotificationAjaxSettingsListPageController
import jetbrains.buildServer.serverSide.SBuildServer; //导入依赖的package包/类
public MsTeamsNotificationAjaxSettingsListPageController(SBuildServer server, WebControllerManager webManager,
ProjectSettingsManager settings, MsTeamsNotificationPayloadManager manager, PluginDescriptor pluginDescriptor,
MsTeamsNotificationMainSettings mainSettings) {
super(server);
myWebManager = webManager;
myServer = server;
mySettings = settings;
myPluginDescriptor = pluginDescriptor;
myManager = manager;
myMainSettings = mainSettings;
}
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:12,代码来源:MsTeamsNotificationAjaxSettingsListPageController.java
示例15: BuildScanViewBuildTab
import jetbrains.buildServer.serverSide.SBuildServer; //导入依赖的package包/类
public BuildScanViewBuildTab(
@NotNull PluginDescriptor pluginDescriptor,
@NotNull SBuildServer buildServer,
@NotNull PagePlaces pagePlaces,
@NotNull BuildScanDisplayArbiter buildScanDisplayArbiter,
@NotNull BuildScanLookup buildScanLookup
) {
super("Build Scan", "buildScan", pagePlaces, pluginDescriptor.getPluginResourcesPath("/buildScanPage.jsp"), buildServer);
setPosition(PositionConstraint.last());
this.buildScanDisplayArbiter = buildScanDisplayArbiter;
this.buildScanLookup = buildScanLookup;
LOGGER.info(String.format("Registered %s. %s-%s", getClass().getSimpleName(), pluginDescriptor.getPluginName(), pluginDescriptor.getPluginVersion()));
}