jetbrains.buildServer.serverSide.SBuildServer Java Examples

The following examples show how to use jetbrains.buildServer.serverSide.SBuildServer. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DownloadSymbolsController.java    From teamcity-symbol-server with Apache License 2.0 6 votes vote down vote up
public DownloadSymbolsController(@NotNull SBuildServer server,
                                 @NotNull WebControllerManager controllerManager,
                                 @NotNull AuthorizationInterceptor authInterceptor,
                                 @NotNull SecurityContextEx securityContext,
                                 @NotNull MetadataStorage buildMetadataStorage,
                                 @NotNull AuthHelper authHelper,
                                 @NotNull SymbolsCache symbolsCache) {
  super(server);
  mySecurityContext = securityContext;
  myBuildMetadataStorage = buildMetadataStorage;
  myAuthHelper = authHelper;
  mySymbolsCache = symbolsCache;
  final String path = SymbolsConstants.APP_SYMBOLS + "/**";
  controllerManager.registerController(path, this);
  authInterceptor.addPathNotRequiringAuth(path);
}
 
Example #2
Source File: SlackNotifierAdminPage.java    From tcSlackBuildNotifier with MIT License 6 votes vote down vote up
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");
}
 
Example #3
Source File: VMWareEditProfileController.java    From teamcity-vmware-plugin with Apache License 2.0 6 votes vote down vote up
public VMWareEditProfileController(@NotNull final SBuildServer server,
                                   @NotNull final PluginDescriptor pluginDescriptor,
                                   @NotNull final WebControllerManager manager,
                                   @NotNull final AgentPoolManager agentPoolManager,
                                   @NotNull final SSLTrustStoreProvider sslTrustStoreProvider
                                   ) {
  super(server);
  myHtmlPath = pluginDescriptor.getPluginResourcesPath("vmware-settings.html");
  myPluginDescriptor = pluginDescriptor;
  myAgentPoolManager = agentPoolManager;
  mySslTrustStoreProvider = sslTrustStoreProvider;
  myJspPath = myPluginDescriptor.getPluginResourcesPath("vmware-settings.jsp");
  mySnapshotsPath = pluginDescriptor.getPluginResourcesPath("vmware-getsnapshotlist.html");
  myConfigHelperPath = pluginDescriptor.getPluginResourcesPath("vmware-config-helper.html");
  manager.registerController(myHtmlPath, this);
  manager.registerController(pluginDescriptor.getPluginResourcesPath("vmware-getsnapshotlist.html"),
                             new GetSnapshotsListController(mySslTrustStoreProvider));
  manager.registerController(pluginDescriptor.getPluginResourcesPath("vmware-config-helper.html"),
                             new ConfigurationHelperController(mySslTrustStoreProvider));
}
 
Example #4
Source File: KubeProfileEditController.java    From teamcity-kubernetes-plugin with Apache License 2.0 6 votes vote down vote up
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 ChooserController.Namespaces namespacesChooser,
                                 @NotNull final ChooserController.Deployments deploymentsChooser,
                                 @NotNull final KubeDeleteImageDialogController kubeDeleteImageDialogController) {
    super(server);
    myPluginDescriptor = pluginDescriptor;
    myPath = pluginDescriptor.getPluginResourcesPath(EDIT_KUBE_HTML);
    myAgentPoolManager = agentPoolManager;
    myAuthStrategyProvider = authStrategyProvider;
    myPodTemplateProviders = podTemplateProviders;
    myNamespacesChooser = namespacesChooser;
    myDeploymentsChooser = deploymentsChooser;
    myKubeDeleteImageDialogController = kubeDeleteImageDialogController;
    web.registerController(myPath, this);
}
 
Example #5
Source File: AnsibleRunResultsTab.java    From tc-ansible-runner with MIT License 5 votes vote down vote up
public AnsibleRunResultsTab(@NotNull PagePlaces pagePlaces, @NotNull SBuildServer server, @NotNull PluginDescriptor descriptor) {
    super("", "", pagePlaces, server);
    setTabTitle(getTitle());
    setPluginName(getClass().getSimpleName());
    setIncludeUrl(getJspPage(descriptor));
    addCssFile(descriptor.getPluginResourcesPath("css/style.css"));
    addJsFile(descriptor.getPluginResourcesPath("js/angular.min.js"));
    addJsFile(descriptor.getPluginResourcesPath("js/angular-app.js"));
}
 
Example #6
Source File: BuildSummaryLinkExtension.java    From TeamCity.SonarQubePlugin with Apache License 2.0 5 votes vote down vote up
public BuildSummaryLinkExtension(@NotNull final WebControllerManager manager,
                                 @NotNull final PluginDescriptor pluginDescriptor,
                                 @NotNull final SBuildServer server) {
    super(manager, PlaceId.BUILD_SUMMARY, pluginDescriptor.getPluginName(), "buildSummary.jsp");
    myServer = server;
    register();
}
 
Example #7
Source File: DownloadSourcesController.java    From teamcity-symbol-server with Apache License 2.0 5 votes vote down vote up
public DownloadSourcesController(@NotNull SBuildServer server,
                                 @NotNull WebControllerManager webManager,
                                 @NotNull AuthorizationInterceptor authInterceptor,
                                 @NotNull AuthHelper authHelper) {
  super(server);
  myAuthHelper = authHelper;
  final String path = SymbolsConstants.APP_SOURCES + "/**";
  webManager.registerController(path, this);
  authInterceptor.addPathNotRequiringAuth(path);
}
 
Example #8
Source File: SlackNotificationMainSettings.java    From tcSlackBuildNotifier with MIT License 5 votes vote down vote up
public SlackNotificationMainSettings(SBuildServer server, ServerPaths serverPaths){
       this.serverPaths = serverPaths;
       Loggers.SERVER.debug(NAME + " :: Constructor called");
	this.server = server;
	slackNotificationMainConfig = new SlackNotificationMainConfig(serverPaths);

}
 
Example #9
Source File: SlackNotificationAjaxEditPageController.java    From tcSlackBuildNotifier with MIT License 5 votes vote down vote up
public SlackNotificationAjaxEditPageController(SBuildServer server, WebControllerManager webManager,
                                                  ProjectSettingsManager settings, SlackNotificationProjectSettings whSettings, SlackNotificationPayloadManager manager,
                                                  PluginDescriptor pluginDescriptor, SlackNotificationMainSettings mainSettings) {
    super(server);
    myWebManager = webManager;
    myServer = server;
    mySettings = settings;
    myPluginPath = pluginDescriptor.getPluginResourcesPath();
    myManager = manager;
       myMainSettings = mainSettings;
}
 
Example #10
Source File: SlackNotificationAjaxSettingsListPageController.java    From tcSlackBuildNotifier with MIT License 5 votes vote down vote up
public SlackNotificationAjaxSettingsListPageController(SBuildServer server, WebControllerManager webManager,
                                                          ProjectSettingsManager settings, SlackNotificationPayloadManager manager, PluginDescriptor pluginDescriptor,
                                                          SlackNotificationMainSettings mainSettings) {
    super(server);
    myWebManager = webManager;
    myServer = server;
    mySettings = settings;
    myPluginDescriptor = pluginDescriptor;
    myManager = manager;
       myMainSettings = mainSettings;
}
 
Example #11
Source File: SlackNotificationIndexPageController.java    From tcSlackBuildNotifier with MIT License 5 votes vote down vote up
public SlackNotificationIndexPageController(SBuildServer server, WebControllerManager webManager,
                                               ProjectSettingsManager settings, PluginDescriptor pluginDescriptor, SlackNotificationPayloadManager manager,
                                               SlackNotificationMainSettings configSettings) {
    super(server);
    myWebManager = webManager;
    myServer = server;
    mySettings = settings;
    myPluginDescriptor = pluginDescriptor;
    myMainSettings = configSettings;
    myManager = manager;
}
 
Example #12
Source File: AllureReportBuildSummaryExtension.java    From allure-teamcity with Apache License 2.0 5 votes vote down vote up
public AllureReportBuildSummaryExtension(@NotNull final SBuildServer server,
                                         @NotNull final WebControllerManager manager,
                                         @NotNull final PluginDescriptor pluginDescriptor) {
    super(manager, PlaceId.BUILD_SUMMARY, pluginDescriptor.getPluginName(), "buildSummary.jsp");
    this.server = server;
    register();
}
 
Example #13
Source File: PluginConfiguration.java    From teamcity-oauth with Apache License 2.0 4 votes vote down vote up
@Bean
public AuthenticationSchemeProperties authenticationSchemeProperties(SBuildServer sBuildServer, LoginConfiguration loginConfiguration) {
    return new AuthenticationSchemeProperties(sBuildServer, loginConfiguration);
}
 
Example #14
Source File: AuthenticationSchemeProperties.java    From teamcity-oauth with Apache License 2.0 4 votes vote down vote up
public AuthenticationSchemeProperties(@NotNull final SBuildServer sBuildServer, @NotNull final LoginConfiguration loginConfiguration) {
    this.sBuildServer = sBuildServer;
    this.loginConfiguration = loginConfiguration;
    this.presets = new ConfigPresets();
}
 
Example #15
Source File: EditSQRRunType.java    From TeamCity.SonarQubePlugin with Apache License 2.0 4 votes vote down vote up
public EditSQRRunType(@NotNull final SBuildServer server,
                      @NotNull final SQSManager mySqsManager) {
    this.mySqsManager = mySqsManager;
    server.registerExtension(EditRunTypeControllerExtension.class, Constants.RUNNER_TYPE, this);
    server.registerExtension(EditRunTypeControllerExtension.class, SQMSConstants.SONAR_QUBE_MSBUILD_RUN_TYPE_ID, this);
}
 
Example #16
Source File: VariableMessageBuilderTest.java    From tcSlackBuildNotifier with MIT License 4 votes vote down vote up
@Before
public void setup(){
	sBuildType.setProject(sProject);
	sBuildServer = mock(SBuildServer.class);
}
 
Example #17
Source File: SlackNotificationMockingFramework.java    From tcSlackBuildNotifier with MIT License votes vote down vote up
public SBuildServer getServer();