Java源码示例:jetbrains.buildServer.serverSide.SBuildServer

示例1
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);
}
 
示例2
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);
}
 
示例3
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));
}
 
示例4
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");
}
 
示例5
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);
}
 
示例6
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"));
}
 
示例7
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();
}
 
示例8
public SlackNotificationMainSettings(SBuildServer server, ServerPaths serverPaths){
       this.serverPaths = serverPaths;
       Loggers.SERVER.debug(NAME + " :: Constructor called");
	this.server = server;
	slackNotificationMainConfig = new SlackNotificationMainConfig(serverPaths);

}
 
示例9
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;
}
 
示例10
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;
}
 
示例11
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;
}
 
示例12
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();
}
 
示例13
@Bean
public AuthenticationSchemeProperties authenticationSchemeProperties(SBuildServer sBuildServer, LoginConfiguration loginConfiguration) {
    return new AuthenticationSchemeProperties(sBuildServer, loginConfiguration);
}
 
示例14
public AuthenticationSchemeProperties(@NotNull final SBuildServer sBuildServer, @NotNull final LoginConfiguration loginConfiguration) {
    this.sBuildServer = sBuildServer;
    this.loginConfiguration = loginConfiguration;
    this.presets = new ConfigPresets();
}
 
示例15
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);
}
 
示例16
@Before
public void setup(){
	sBuildType.setProject(sProject);
	sBuildServer = mock(SBuildServer.class);
}
 
示例17
public SBuildServer getServer();