本文整理汇总了Java中jetbrains.buildServer.serverSide.ProjectManager类的典型用法代码示例。如果您正苦于以下问题:Java ProjectManager类的具体用法?Java ProjectManager怎么用?Java ProjectManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ProjectManager类属于jetbrains.buildServer.serverSide包,在下文中一共展示了ProjectManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: build
import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public static EditDebRepositoryBean build(@NotNull ProjectManager projectManager, @NotNull final DebRepositoryConfiguration repoConfig, @NotNull SProject sproject) {
EditDebRepositoryBean bean = new EditDebRepositoryBean(repoConfig, sproject);
for (DebRepositoryBuildTypeConfig btConfig : repoConfig.getBuildTypes()) {
SBuildType sBuildType = projectManager.findBuildTypeById(btConfig.getBuildTypeId());
if (sBuildType != null) {
List<FilterAndBuildType> filterAndBuildTypes = new ArrayList<>();
for (Filter f : btConfig.getDebFilters()) {
filterAndBuildTypes.add(new FilterAndBuildType(sBuildType.getBuildTypeId(), f));
}
bean.filtersAndBuildTypes.put(new BuildTypeData(sBuildType.getExternalId(),
sBuildType.getName(),
sBuildType.getProjectExternalId(),
sBuildType.getProjectName(),
sBuildType.getFullName()
),
filterAndBuildTypes);
}
}
bean.defaultAllArchitectures = repoConfig.getDefaultArchitecturesRepresentedByAll();
bean.allArchitectures = repoConfig.getArchitecturesRepresentedByAll();
return bean;
}
示例2: Controller
import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的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);
}
示例3: ManageSQSActionController
import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public ManageSQSActionController(@NotNull final WebControllerManager controllerManager,
@NotNull final SQSManager sqsManager,
@NotNull final ProjectManager projectManager,
@NotNull final SecurityContext securityContext,
@NotNull final SQSInfoFactory sqsInfoFactory,
@NotNull final ConfigActionFactory configActionFactory) {
super(controllerManager);
mySQSInfoFactory = sqsInfoFactory;
myConfigActionFactory = configActionFactory;
controllerManager.registerController("/admin/manageSonarServers.html", this);
registerAction(this);
mySqsManager = sqsManager;
myProjectManager = projectManager;
this.securityContext = securityContext;
}
示例4: findProjectById
import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
/**
* Finds a TeamCity project in the ProjectManager by ProjectId.
* Uses findProjectByExternalId() if available, otherwise uses findProjectById()
* @param TeamCity projectManager instance
* @param projectId string
* @return TeamCity Project Config object
*/
public static SProject findProjectById(ProjectManager projectManager, String projectId) {
try {
return projectManager.findProjectByExternalId(projectId);
} catch (NoSuchMethodError ex){
LOGGER.log(Level.INFO,ex.getMessage(),ex);
return projectManager.findProjectById(projectId);
}
}
示例5: findBuildTypeById
import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
/**
* Finds a TeamCity BuiltType in the ProjectManager by buildTypeId.
* Uses findBuildTypeByExternalId() if available, otherwise uses findBuildTypeById()
* @param ProjectManager instance
* @param buildTypeId string
* @return TeamCity BuildType config object
*/
public static SBuildType findBuildTypeById(ProjectManager projectManager, String buildTypeId) {
try {
return projectManager.findBuildTypeByExternalId(buildTypeId);
} catch (NoSuchMethodError ex){
LOGGER.log(Level.INFO,ex.getMessage(),ex);
return projectManager.findBuildTypeById(buildTypeId);
}
}
示例6: MsTeamsNotificationBuildTabExtension
import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
protected MsTeamsNotificationBuildTabExtension(
PagePlaces pagePlaces, ProjectManager projectManager,
ProjectSettingsManager settings, WebControllerManager manager,
PluginDescriptor pluginDescriptor) {
//super(myTitle, myTitle, null, projectManager);
super(SLACK_NOTIFICATIONS, "MsTeams", manager, projectManager);
this.projSettings = settings;
myPluginPath = pluginDescriptor.getPluginResourcesPath();
}
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:10,代码来源:MsTeamsNotificationBuildTabExtension.java
示例7: MsTeamsNotificationProjectTabExtension
import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
protected MsTeamsNotificationProjectTabExtension(
PagePlaces pagePlaces, ProjectManager projectManager,
ProjectSettingsManager settings, PluginDescriptor pluginDescriptor) {
super("msteamsNotifications", "MsTeams", pagePlaces, projectManager);
this.projSettings = settings;
myPluginPath = pluginDescriptor.getPluginResourcesPath();
}
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:8,代码来源:MsTeamsNotificationProjectTabExtension.java
示例8: DebRepoBuildTypeTab
import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
protected DebRepoBuildTypeTab(
PagePlaces pagePlaces, ProjectManager projectManager, SecurityContext securityContext,
PluginDescriptor pluginDescriptor, WebControllerManager manager,
DebRepositoryConfigurationManager debRepositoryConfigurationManager) {
super(pluginDescriptor.getPluginName(), TAB_TITLE, manager, projectManager, "debRepository/buildTypeTab.jsp");
this.myDebRepositoryConfigurationManager = debRepositoryConfigurationManager;
}
示例9: AddRepositoryAction
import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public AddRepositoryAction(@NotNull ProjectManager projectManager,
@NotNull final DebRepositoryConfigurationManager debRepositoryConfigurationManager,
@NotNull final DebRepositoryConfigurationFactory debRepositoryConfigurationFactory,
@NotNull final DebRepoConfigurationEditPageActionController controller) {
myProjectManager = projectManager;
myDebRepositoryConfigurationManager = debRepositoryConfigurationManager;
myDebRepositoryConfigurationFactory = debRepositoryConfigurationFactory;
controller.registerAction(this);
}
示例10: MapBackedDebRepositoryDatabase
import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public MapBackedDebRepositoryDatabase(DebRepositoryManager debRepositoryManager,
DebRepositoryConfigurationManager debRepositoryConfigurationManager,
ProjectManager projectManager){
this.myDebRepositoryManager = debRepositoryManager;
this.myDebRepositoryConfigurationManager = debRepositoryConfigurationManager;
this.myProjectManager = projectManager;
}
示例11: DebRepositoryManagerImpl
import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public DebRepositoryManagerImpl(ProjectManager projectManager,
XmlPersister<DebPackageStore, DebRepositoryConfiguration> debRepositoryDatabaseXmlPersister,
DebRepositoryConfigurationFactory debRepositoryConfigurationFactory,
DebRepositoryConfigurationChangePersister debRepositoryConfigurationChangePersister) {
super(debRepositoryConfigurationFactory, debRepositoryConfigurationChangePersister);
this.myProjectManager = projectManager;
this.myDebRepositoryDatabaseXmlPersister = debRepositoryDatabaseXmlPersister;
}
示例12: Controller
import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public Controller(@NotNull SBuildServer server,
@NotNull PluginDescriptor descriptor,
@NotNull ServerPaths serverPaths,
@NotNull WebControllerManager manager,
@NotNull final ProjectManager projectManager,
@NotNull ProjectSettingsManager projectSettingsManager,
@NotNull ServerConfigurations configurations) throws IOException {
manager.registerController(CONTROLLER_PATH, this);
this.configurations = configurations;
this.myProjectManager = projectManager;
this.projectSettingsManager = projectSettingsManager;
this.listPagePath = descriptor.getPluginResourcesPath(LIST_PAGE);
this.editPagePath = descriptor.getPluginResourcesPath(EDIT_PAGE);
}
示例13: FailureCulpritOverviewTab
import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public FailureCulpritOverviewTab(@NotNull WebControllerManager manager,
@NotNull ProjectManager projectManager,
@NotNull PluginDescriptor pluginDescriptor,
@NotNull WebLinks webLinks) {
super(getTabCode(), "Failure culprit overview", manager, projectManager);
this.webLinks = webLinks;
// specify path relative to the plugin; avoid TC assuming the JSP is under /plugins/[TAB CODE], which is what it
// would do if we used this relative path in build-server-plugin-sin-city.xml's
// bean/property[@name='includeUrl']; this is needed since getTabCode() returns a value different than the
// plugin name; see https://devnet.jetbrains.com/message/5564684
setIncludeUrl(pluginDescriptor.getPluginResourcesPath("failureCulpritOverview.jsp"));
}
示例14: ManualTriggerTab
import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public ManualTriggerTab(@NotNull WebControllerManager manager,
@NotNull ProjectManager projectManager,
@NotNull PluginDescriptor pluginDescriptor) {
super(getTabCode(), "Trigger culprit finding", manager, projectManager);
// specify path relative to the plugin; avoid TC assuming the JSP is under /plugins/[TAB CODE], which is what it
// would do if we used this relative path in build-server-plugin-sin-city.xml's
// bean/property[@name='includeUrl']; this is needed since getTabCode() returns a value different than the
// plugin name; see https://devnet.jetbrains.com/message/5564684
setIncludeUrl(pluginDescriptor.getPluginResourcesPath("triggerCulpritFinding.jsp"));
}
示例15: WebhooksProjectTab
import jetbrains.buildServer.serverSide.ProjectManager; //导入依赖的package包/类
public WebhooksProjectTab(@NotNull PagePlaces pagePlaces,
@NotNull ProjectManager projectManager,
@NotNull PluginDescriptor pluginDescriptor,
@NotNull WebhooksSettings settings) {
super(PLUGIN_NAME, PLUGIN_TITLE, pagePlaces, projectManager);
this.pluginDescriptor = pluginDescriptor;
this.settings = settings;
}