Class XmlRpcBasedRemoteServer
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.BaseXmlRpcServer
-
- jetbrains.buildServer.serverSide.impl.XmlRpcBasedRemoteServer
-
- All Implemented Interfaces:
RemoteBuildServer
public class XmlRpcBasedRemoteServer extends BaseXmlRpcServer implements RemoteBuildServer
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.serverProxy.RemoteBuildServer
REMOTE_BUILD_SERVER
-
-
Constructor Summary
Constructors Constructor Description XmlRpcBasedRemoteServer(BuildServerEx server, BuildAgentManager buildAgentManager, AgentPoolManager agentPoolManager, ServerModelXStreamHolder xstreamHolder, ProjectManager projectManager, BuildCustomizerFactory buildCustomizerFactory, EventTracker eventTracker, ProblemMutingService problemMutingService, STestManager testManager, SuitableConfigurationsProvider suitableConfigurationsProvider, CurrentProblemsManager currentProblemsManager, TestName2Index testName2Index, AgentTypeFinder agentTypeFinder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddToQueue(Vector addToQueueRequests, String rawTriggeredBy)Adds one or more builds in the queue.byte[]fetchData(String userId, String buildId, String sourceId, String whatToFetch)Fetches binary data from the server.StringfindBuildInstanceById(String id)Returns build instance data for the specified idStringfindBuildRunnerByType(String buildTypeId, String runnerType)Returns the first found build runner of the specified type in the specified build configuration.StringfindFailedTests(String fileFullPath, Vector _testNames)WARNING!!! If you rename this method, make sure you handled its usage injetbrains.buildServer.usageStatistics.impl.providers.IDEFeaturesUsageStatisticsProviderStringfindTests(String fileFullPath, Vector _testNames)WARNING!!! If you rename this method, make sure you handled its usage injetbrains.buildServer.usageStatistics.impl.providers.IDEFeaturesUsageStatisticsProviderStringfindUserById(String userId)Returns user for the specified idBooleanfinishRemoteDebugSession(String personalChangeId, String buildTypeId)Finishes the current remote debug session on the certain agent, which is determined by personal change id and build type idVectorgetBuildFailedTests(String buildId, int startFromIdx, int maxTestsToLoad)Returns failed tests in the specified build instance, for running build currently executing test will be added to the list too.VectorgetBuildInstanceLogMessages(String buildId, int skipMessages)Returns messages logged for the specified build instanceVectorgetBuildInstanceLogMessages(String buildId, int skipMessages, int maxCount)Returns limited number of messages logged for the specified build instanceVectorgetBuildInstanceModifications(String buildId, int policyId, boolean includeModificationsIfPreviousBuildIsAbsent)Returns modifications detected between the specified build instance and previous build, selected according to the specified policyStringgetBuildParameter(String buildTypeId, String key)Returns build parameter by parameter name.StringgetBuildParameters(String buildTypeId)Returns the serialized build parameters map of build type specified.StringgetBuildRunners(Vector buildTypeIds)Returns map from build type ids to lists of enabled build runners for the specified build types.StringgetBuildsWithArtifacts(Vector paths, Vector buildTypeIds)Returns last finished builds those contain given artifact files.VectorgetBuildTypesWithArtifactDependencies(Vector buildTypeIds)Returns the list of build types that have artifact dependencies.VectorgetBuildTypesWithTests(Vector buildTypeIds)Returns the list of build types those have tests.VectorgetCanRunAndCompatibleAgents(String builtTypeId, boolean includeDisabled)Returns the agents those are compatible with the specified build type, and on those specified build type can be runVectorgetCommitters(String buildId, int selectPrevBuildPolicy)Returns list of committers who made changes between the previous build selected according to the policy, and the specified oneVectorgetCompilationErrors(String buildInstanceId)Returns compilation errors of the specified buildbyte[]getContentAfter(String modificationId, String fileName)Returns file content, specified by the VcsChange, at the moment right after specified modification has been madebyte[]getContentBefore(String modificationId, String fileName)Returns file content, which corresponded to file before specified modification has been madebyte[]getFileContent(String relativePath, String buildId)Returns specified file content at the moment when specified build has been runVectorgetFinishedBuilds(String id)Returns all finished build instances in the specified configurationVectorgetGroupedByPoolCanRunAndCompatibleAgents(String builtTypeId, boolean includeDisabled)Returns the grouped by pool agents those are compatible with the specified build type, and on those specified build type can be run.StringgetLastFinished(String buildTypeId)Returns last finished build in the specified configurationStringgetLastSuccessfullyFinished(String buildTypeId)Returns last successful finished build instance for the specified configurationVectorgetModificationFiles(String modIdStr, boolean personal)Returns list of VcsChange structures (changed files) corresponding to modification with specified id.VectorgetModificationsSinceLastSuccessful(String buildTypeId)Returns all modifications detected since last successfully finished build has been runStringgetNewFinishedBuilds(Vector buildIds, Vector buildTypeIds)Returns newly finished buildsStringgetParameters(String buildTypeId)Returns the serialized build and config parameters map of build type specified.VectorgetPendingChanges(String buildTypeId)Returns all changes detected but not run for the specified configurationbyte[]getPersonalContentAfter(String modificationId, String fileName)Returns file content, specified by the VcsChange, at the moment right after specified modification has been made for personal changebyte[]getPersonalContentBefore(String modificationId, String fileName)Returns file content, which corresponded to file before specified modification has been made for personal changeStringgetProblemRelatedEventCounters(Vector projectIds)Returns problem related event counters for specified projects.VectorgetProjectCommitters(String projectId)Returns list of project committersVectorgetRegisteredAgents()Returns all agents registered on the serverVectorgetRegisteredProjects(boolean loadInstances)Returns snapshots for all projects registered on the serverVectorgetRelatedProjects(Vector buildTypeIds)Returns projects of specified build configurations and all their parents in project hierarchy.StringgetResolvedArtifactDependencies(Vector buildTypeIds)Resolves artifact dependencies for the specified build types.VectorgetResponsibilityIds(String userId)Returns id list of all the configuration which are under specified user responsibilityVectorgetRunningBuilds(String id)Returns all running build for the specified configurationVectorgetUsers()Returns all usersBooleanhaveCommitDecision(Vector personalChangeIds)Returns true if at least one of the specified personal changes has non-UNKNOWN commit decisionBooleanisSequenceBuildType(String buildTypeId)Returns whether the build type is a sequence one (has snapshot dependencies)StringlookUpBuildsWithArtifacts(Vector paths, Vector buildTypeIds)Returns last finished builds those contain given artifact files.BooleanmuteProblems(Vector itemIdsVector, boolean unmuteWhenFixed, String unmuteTimestampStr, Vector buildTypeIdsVector, Vector buildIdsVector, String userId, String comment)Mutes the specified items.BooleanremoveBuild(String buildId)Removes build instance from the server historyBooleanrepeatRemoteDebugSession(String personalChangeId, String buildTypeId)Repeats the current remote debug session on the certain agent, which is determined by personal change id and build type idBooleanrepeatRemoteDebugSessionWithNewChanges(String personalChangeId, String buildTypeId, String newChangesPersonalPatchId)Applies new personal patch and repeats the current remote debug session on the certain agent, which is determined by personal change id and build type idBooleanschedulePersonalChangeForDeletion(String changeId, String userId)Mark personal change as deleted and makes it invisible for userBooleansetPersonalChangeStatus(String changeId, int statusPriority)sets status of personal changeBooleanstopBuild(String buildId, String userId, String reason)Schedules specified build to be stoppedBooleanstopPendingPersonalBuild(String personalChangeId, String buildTypeId, String userId, String reason)Removes the specified personal build from the queueBooleanunmuteProblems(Vector itemIdsVector, String userId, String comment)Unmutes the specified items.BooleanupdateResponsibility(Vector itemIdsVector, String newStateName, String responsibleUserId, String reporterUserId, String comment, String removeMethodName)Updates responsibility for the specified items.-
Methods inherited from class jetbrains.buildServer.serverSide.impl.BaseXmlRpcServer
clearRedirects, setRedirect, start, stop, subscribeOnRequests
-
-
-
-
Constructor Detail
-
XmlRpcBasedRemoteServer
public XmlRpcBasedRemoteServer(@NotNull BuildServerEx server, @NotNull BuildAgentManager buildAgentManager, @NotNull AgentPoolManager agentPoolManager, @NotNull ServerModelXStreamHolder xstreamHolder, @NotNull ProjectManager projectManager, @NotNull BuildCustomizerFactory buildCustomizerFactory, @NotNull EventTracker eventTracker, @NotNull ProblemMutingService problemMutingService, @NotNull STestManager testManager, @NotNull SuitableConfigurationsProvider suitableConfigurationsProvider, @NotNull CurrentProblemsManager currentProblemsManager, @NotNull TestName2Index testName2Index, @NotNull AgentTypeFinder agentTypeFinder)
-
-
Method Detail
-
getRegisteredAgents
public Vector getRegisteredAgents()
Description copied from interface:RemoteBuildServerReturns all agents registered on the server- Specified by:
getRegisteredAgentsin interfaceRemoteBuildServer- Returns:
- Vector of strings. Each string is serialized with XStream object of class BuildAgentData
-
getRegisteredProjects
public Vector getRegisteredProjects(boolean loadInstances)
Description copied from interface:RemoteBuildServerReturns snapshots for all projects registered on the server- Specified by:
getRegisteredProjectsin interfaceRemoteBuildServer- Parameters:
loadInstances- should returned data contain running and last finished builds data or not- Returns:
- Vector of strings. Each string is serialized with XStream object of class ProjectData @param loadInstances
-
getRelatedProjects
public Vector getRelatedProjects(Vector buildTypeIds)
Description copied from interface:RemoteBuildServerReturns projects of specified build configurations and all their parents in project hierarchy.- Specified by:
getRelatedProjectsin interfaceRemoteBuildServer- Parameters:
buildTypeIds- Ids of build configuration- Returns:
- Vector of strings. Each string is serialized with XStream object of class ProjectData. No running and last finished builds data is provided.
-
getBuildInstanceLogMessages
public Vector getBuildInstanceLogMessages(String buildId, int skipMessages)
Description copied from interface:RemoteBuildServerReturns messages logged for the specified build instance- Specified by:
getBuildInstanceLogMessagesin interfaceRemoteBuildServer- Parameters:
buildId- build instance idskipMessages- how many messages should be skipped- Returns:
- Vector of strings.
-
getBuildInstanceLogMessages
public Vector getBuildInstanceLogMessages(String buildId, int skipMessages, int maxCount)
Description copied from interface:RemoteBuildServerReturns limited number of messages logged for the specified build instance- Specified by:
getBuildInstanceLogMessagesin interfaceRemoteBuildServer- Parameters:
buildId- build instance idskipMessages- how many messages should be skippedmaxCount- returns no more messages than this parameter value- Returns:
- Vector of strings.
-
getRunningBuilds
public Vector getRunningBuilds(String id)
Description copied from interface:RemoteBuildServerReturns all running build for the specified configuration- Specified by:
getRunningBuildsin interfaceRemoteBuildServer- Parameters:
id- configuration id- Returns:
- Vector of strings. Each string is serialized with XStream object of class BuildInstanceData
-
getFinishedBuilds
public Vector getFinishedBuilds(String id)
Description copied from interface:RemoteBuildServerReturns all finished build instances in the specified configuration- Specified by:
getFinishedBuildsin interfaceRemoteBuildServer- Parameters:
id- configuration id- Returns:
- Vector of strings. Each string is serialized with XStream object of class BuildInstanceData
-
getBuildFailedTests
public Vector getBuildFailedTests(String buildId, int startFromIdx, int maxTestsToLoad)
Description copied from interface:RemoteBuildServerReturns failed tests in the specified build instance, for running build currently executing test will be added to the list too.- Specified by:
getBuildFailedTestsin interfaceRemoteBuildServer- Parameters:
buildId- build instance idstartFromIdx- how many tests should be skippedmaxTestsToLoad- how many tests to load, -1 to load all tests- Returns:
- Vector of strings.
-
getBuildInstanceModifications
public Vector getBuildInstanceModifications(String buildId, int policyId, boolean includeModificationsIfPreviousBuildIsAbsent)
Description copied from interface:RemoteBuildServerReturns modifications detected between the specified build instance and previous build, selected according to the specified policy- Specified by:
getBuildInstanceModificationsin interfaceRemoteBuildServer- Parameters:
buildId- build instance idpolicyId- policy id, see jetbrains.buildServer.vcs.SelectPrevBuildPolicyincludeModificationsIfPreviousBuildIsAbsent- - should method return something if build, selected according to policy, is absent- Returns:
- Vector of strings. Each string is serialized with XStream object of class VcsModificationData
-
getContentAfter
@NotNull public byte[] getContentAfter(String modificationId, String fileName) throws VcsException
Description copied from interface:RemoteBuildServerReturns file content, specified by the VcsChange, at the moment right after specified modification has been made- Specified by:
getContentAfterin interfaceRemoteBuildServer- Parameters:
modificationId- modification idfileName- file name, from VcsChange- Returns:
- byte content of a specific file version after modification
- Throws:
VcsException- error while receiving content from the vcs server.
-
getPersonalContentAfter
@NotNull public byte[] getPersonalContentAfter(String modificationId, String fileName) throws VcsException
Description copied from interface:RemoteBuildServerReturns file content, specified by the VcsChange, at the moment right after specified modification has been made for personal change- Specified by:
getPersonalContentAfterin interfaceRemoteBuildServer- Parameters:
modificationId- modification idfileName- file name, from VcsChange- Returns:
- byte content of a specific file version after modification
- Throws:
VcsException- error while receiving content from the vcs server.
-
getPersonalContentBefore
@NotNull public byte[] getPersonalContentBefore(String modificationId, String fileName) throws VcsException
Description copied from interface:RemoteBuildServerReturns file content, which corresponded to file before specified modification has been made for personal change- Specified by:
getPersonalContentBeforein interfaceRemoteBuildServer- Parameters:
modificationId- modification idfileName- file name, from VcsChange- Returns:
- byte content of a specific file version before modification
- Throws:
VcsException- error while receiving content from the vcs server.
-
getContentBefore
public byte[] getContentBefore(String modificationId, String fileName) throws VcsException
Description copied from interface:RemoteBuildServerReturns file content, which corresponded to file before specified modification has been made- Specified by:
getContentBeforein interfaceRemoteBuildServer- Parameters:
modificationId- modification idfileName- file name, from VcsChange- Returns:
- byte content of a specific file version before modification
- Throws:
VcsException- error while receiving content from the vcs server.
-
getLastFinished
public String getLastFinished(String buildTypeId)
Description copied from interface:RemoteBuildServerReturns last finished build in the specified configuration- Specified by:
getLastFinishedin interfaceRemoteBuildServer- Parameters:
buildTypeId- configuration id- Returns:
- serialized with XStream object of class BuildInstanceData
-
getNewFinishedBuilds
public String getNewFinishedBuilds(Vector buildIds, Vector buildTypeIds)
Description copied from interface:RemoteBuildServerReturns newly finished builds- Specified by:
getNewFinishedBuildsin interfaceRemoteBuildServer- Parameters:
buildIds- For each build from this list this method will find later last finished build in the same build type. If it exists it will be added to result.buildTypeIds- Last finished build from each of these build types will be added to the result (if exists).- Returns:
- Serialized with XStream List of BuildInstanceData
-
getCompilationErrors
public Vector getCompilationErrors(String buildInstanceId)
Description copied from interface:RemoteBuildServerReturns compilation errors of the specified build- Specified by:
getCompilationErrorsin interfaceRemoteBuildServer- Parameters:
buildInstanceId- build id- Returns:
- Vector of strings
-
getPendingChanges
public Vector getPendingChanges(String buildTypeId)
Description copied from interface:RemoteBuildServerReturns all changes detected but not run for the specified configuration- Specified by:
getPendingChangesin interfaceRemoteBuildServer- Parameters:
buildTypeId- configuration id- Returns:
- Vector of strings. Each string is serialized with XStream object of class VcsModificationData
-
getModificationsSinceLastSuccessful
public Vector getModificationsSinceLastSuccessful(String buildTypeId)
Description copied from interface:RemoteBuildServerReturns all modifications detected since last successfully finished build has been run- Specified by:
getModificationsSinceLastSuccessfulin interfaceRemoteBuildServer- Parameters:
buildTypeId- configuration id- Returns:
- Vector of strings. Each string is serialized with XStream object of class VcsModificationData
-
findBuildInstanceById
public String findBuildInstanceById(String id)
Description copied from interface:RemoteBuildServerReturns build instance data for the specified id- Specified by:
findBuildInstanceByIdin interfaceRemoteBuildServer- Parameters:
id- buildId build instance id- Returns:
- serialized with XStream object of class BuildInstanceData
-
getBuildParameters
public String getBuildParameters(String buildTypeId)
Description copied from interface:RemoteBuildServerReturns the serialized build parameters map of build type specified.- Specified by:
getBuildParametersin interfaceRemoteBuildServer- Parameters:
buildTypeId- the build type id- Returns:
- serialized with XStream object of Map<String, String>
- See Also:
BuildType.getBuildParameters()
-
getParameters
public String getParameters(String buildTypeId)
Description copied from interface:RemoteBuildServerReturns the serialized build and config parameters map of build type specified.- Specified by:
getParametersin interfaceRemoteBuildServer- Parameters:
buildTypeId- the build type id- Returns:
- serialized with XStream object of Map<String, String>
- See Also:
BuildType.getParameters()
-
findFailedTests
@NotNull public String findFailedTests(String fileFullPath, Vector _testNames)
WARNING!!! If you rename this method, make sure you handled its usage injetbrains.buildServer.usageStatistics.impl.providers.IDEFeaturesUsageStatisticsProvider- Specified by:
findFailedTestsin interfaceRemoteBuildServer- Parameters:
fileFullPath- full VCS file path_testNames- test names- Returns:
- serialized with XStream object of Map<String, List<BuildTestsData>> (build type id -> list of build tests datas)
-
findTests
@NotNull public String findTests(String fileFullPath, Vector _testNames)
WARNING!!! If you rename this method, make sure you handled its usage injetbrains.buildServer.usageStatistics.impl.providers.IDEFeaturesUsageStatisticsProvider- Specified by:
findTestsin interfaceRemoteBuildServer- Parameters:
fileFullPath- full VCS file path_testNames- test names- Returns:
- serialized with XStream object of Map<String, List<BuildTestsData>> (build type id -> list of build tests datas)
-
isSequenceBuildType
public Boolean isSequenceBuildType(String buildTypeId)
Description copied from interface:RemoteBuildServerReturns whether the build type is a sequence one (has snapshot dependencies)- Specified by:
isSequenceBuildTypein interfaceRemoteBuildServer- Parameters:
buildTypeId- the build type id- Returns:
- true iff build type is a sequence one
-
muteProblems
public Boolean muteProblems(@NotNull Vector itemIdsVector, boolean unmuteWhenFixed, @NotNull String unmuteTimestampStr, @NotNull Vector buildTypeIdsVector, @NotNull Vector buildIdsVector, @NotNull String userId, @NotNull String comment)
Description copied from interface:RemoteBuildServerMutes the specified items. If both buildTypeIds and buildIds are empty, mutes items in projects.- Specified by:
muteProblemsin interfaceRemoteBuildServer- Parameters:
itemIdsVector- list of the itemidsunmuteWhenFixed- true, if items must be unmuted automatically when fixedunmuteTimestampStr- date of unmute in milliseconds, "-1" to not unmute by datebuildTypeIdsVector- build type ids to mute items inbuildIdsVector- build ids to mute items inuserId- id of the usercomment- comment- Returns:
- fake
-
unmuteProblems
public Boolean unmuteProblems(@NotNull Vector itemIdsVector, @NotNull String userId, @NotNull String comment)
Description copied from interface:RemoteBuildServerUnmutes the specified items.- Specified by:
unmuteProblemsin interfaceRemoteBuildServer- Parameters:
itemIdsVector- list of the itemidsuserId- id of the usercomment- comment- Returns:
- fake
-
updateResponsibility
public Boolean updateResponsibility(@NotNull Vector itemIdsVector, @NotNull String newStateName, @NotNull String responsibleUserId, @NotNull String reporterUserId, @NotNull String comment, @NotNull String removeMethodName)
Description copied from interface:RemoteBuildServerUpdates responsibility for the specified items.- Specified by:
updateResponsibilityin interfaceRemoteBuildServer- Parameters:
itemIdsVector- list of the itemidsnewStateName- name of the newresponsibility stateresponsibleUserId- id of the responsible userreporterUserId- id of the reporter usercomment- commentremoveMethodName- remove method name- Returns:
- fake
-
getResponsibilityIds
public Vector getResponsibilityIds(String userId)
Description copied from interface:RemoteBuildServerReturns id list of all the configuration which are under specified user responsibility- Specified by:
getResponsibilityIdsin interfaceRemoteBuildServer- Parameters:
userId- TeamCity user id- Returns:
- Vector of strings. Each string is serialized with XStream object of class ResponsibilityInfoData
-
findUserById
public String findUserById(String userId)
Description copied from interface:RemoteBuildServerReturns user for the specified id- Specified by:
findUserByIdin interfaceRemoteBuildServer- Parameters:
userId- TeamCity user id- Returns:
- serialized with XStream object of class User
-
getUsers
public Vector getUsers()
Description copied from interface:RemoteBuildServerReturns all users- Specified by:
getUsersin interfaceRemoteBuildServer- Returns:
- serialized with XStream vector of UserData
-
getProjectCommitters
public Vector getProjectCommitters(String projectId)
Description copied from interface:RemoteBuildServerReturns list of project committers- Specified by:
getProjectCommittersin interfaceRemoteBuildServer- Parameters:
projectId- TeamCity project id- Returns:
- serialized with XStream vector of UserData
-
addToQueue
public String addToQueue(Vector addToQueueRequests, String rawTriggeredBy)
Description copied from interface:RemoteBuildServerAdds one or more builds in the queue. The information about builds to add in queue is passed as Vector of serializedAddToQueueRequestobjects.- Specified by:
addToQueuein interfaceRemoteBuildServer- Parameters:
addToQueueRequests- vector of serializedAddToQueueRequestobjectsrawTriggeredBy- triggered by text (see alsoTriggeredByBuilder)- Returns:
- serialized
AddToQueueResult
-
getResolvedArtifactDependencies
@NotNull public String getResolvedArtifactDependencies(@NotNull Vector buildTypeIds)
Description copied from interface:RemoteBuildServerResolves artifact dependencies for the specified build types.- Specified by:
getResolvedArtifactDependenciesin interfaceRemoteBuildServer- Parameters:
buildTypeIds- Ids of build types to resolve artifact dependencies for.- Returns:
- serialized Map<String, List<ArtifactDependencyInfo>> (build type id -> list of resolved dependencies).
-
getBuildTypesWithArtifactDependencies
@NotNull public Vector getBuildTypesWithArtifactDependencies(@NotNull Vector buildTypeIds)
Description copied from interface:RemoteBuildServerReturns the list of build types that have artifact dependencies.- Specified by:
getBuildTypesWithArtifactDependenciesin interfaceRemoteBuildServer- Parameters:
buildTypeIds- Ids of build types to check. Pass empty vector to check all build types.- Returns:
- vector of build type ids.
-
getBuildTypesWithTests
@NotNull public Vector getBuildTypesWithTests(@NotNull Vector buildTypeIds)
Description copied from interface:RemoteBuildServerReturns the list of build types those have tests.- Specified by:
getBuildTypesWithTestsin interfaceRemoteBuildServer- Parameters:
buildTypeIds- Ids of build types to check. Pass empty vector to check all build types.- Returns:
- vector of build type ids.
-
getBuildsWithArtifacts
@NotNull public String getBuildsWithArtifacts(@NotNull Vector paths, @NotNull Vector buildTypeIds)
Description copied from interface:RemoteBuildServerReturns last finished builds those contain given artifact files. This method only checks last finished builds. No history lookup is performed to find older build that may have contained the path.- Specified by:
getBuildsWithArtifactsin interfaceRemoteBuildServer- Parameters:
paths- vector of artifact paths that should be in the finished build.buildTypeIds- Ids of build types to check builds in. Pass empty vector to check all build types.- Returns:
- List<BuildInstanceData>.
-
lookUpBuildsWithArtifacts
@NotNull public String lookUpBuildsWithArtifacts(@NotNull Vector paths, @NotNull Vector buildTypeIds)
Description copied from interface:RemoteBuildServerReturns last finished builds those contain given artifact files. Performs history lookup to find older build that may have contained the path.- Specified by:
lookUpBuildsWithArtifactsin interfaceRemoteBuildServer- Parameters:
paths- vector of artifact paths that should be in the finished build.buildTypeIds- Ids of build types to check builds in. Pass empty vector to check all build types.- Returns:
- List<BuildInstanceData>.
-
stopBuild
public Boolean stopBuild(String buildId, String userId, String reason)
Description copied from interface:RemoteBuildServerSchedules specified build to be stopped- Specified by:
stopBuildin interfaceRemoteBuildServer- Parameters:
buildId- build instance iduserId- current used id.reason- reason why build is stopped.- Returns:
- fake return value.
-
stopPendingPersonalBuild
public Boolean stopPendingPersonalBuild(String personalChangeId, String buildTypeId, String userId, String reason)
Description copied from interface:RemoteBuildServerRemoves the specified personal build from the queue- Specified by:
stopPendingPersonalBuildin interfaceRemoteBuildServer- Parameters:
personalChangeId- personal change idbuildTypeId- build type iduserId- current used idreason- reason why build is stopped- Returns:
- fake return value
-
repeatRemoteDebugSession
public Boolean repeatRemoteDebugSession(String personalChangeId, String buildTypeId)
Description copied from interface:RemoteBuildServerRepeats the current remote debug session on the certain agent, which is determined by personal change id and build type id- Specified by:
repeatRemoteDebugSessionin interfaceRemoteBuildServer- Parameters:
personalChangeId- personal change idbuildTypeId- build type id- Returns:
- fake return value
-
repeatRemoteDebugSessionWithNewChanges
public Boolean repeatRemoteDebugSessionWithNewChanges(String personalChangeId, String buildTypeId, String newChangesPersonalPatchId)
Description copied from interface:RemoteBuildServerApplies new personal patch and repeats the current remote debug session on the certain agent, which is determined by personal change id and build type id- Specified by:
repeatRemoteDebugSessionWithNewChangesin interfaceRemoteBuildServer- Parameters:
personalChangeId- personal change idbuildTypeId- build type id- Returns:
- fake return value
-
finishRemoteDebugSession
public Boolean finishRemoteDebugSession(String personalChangeId, String buildTypeId)
Description copied from interface:RemoteBuildServerFinishes the current remote debug session on the certain agent, which is determined by personal change id and build type id- Specified by:
finishRemoteDebugSessionin interfaceRemoteBuildServer- Parameters:
personalChangeId- personal change idbuildTypeId- build type id- Returns:
- fake return value
-
fetchData
public byte[] fetchData(String userId, String buildId, String sourceId, String whatToFetch)
Description copied from interface:RemoteBuildServerFetches binary data from the server.- Specified by:
fetchDatain interfaceRemoteBuildServer- Parameters:
userId- current user id.buildId- build id to fetch data for.sourceId- data provider id ("Inspection", "Duplicator" e.t.c)whatToFetch- specified path to fetch data for.- Returns:
- data binary array.
-
getFileContent
public byte[] getFileContent(String relativePath, String buildId)
Description copied from interface:RemoteBuildServerReturns specified file content at the moment when specified build has been run- Specified by:
getFileContentin interfaceRemoteBuildServer- Parameters:
relativePath- file path relative to project rootbuildId- build instance id- Returns:
- byte content of specific file in specific build
-
getCommitters
public Vector getCommitters(String buildId, int selectPrevBuildPolicy)
Description copied from interface:RemoteBuildServerReturns list of committers who made changes between the previous build selected according to the policy, and the specified one- Specified by:
getCommittersin interfaceRemoteBuildServer- Parameters:
buildId- build instance idselectPrevBuildPolicy- - SelectPrevBuildPolicy enum element id- Returns:
- Vector of strings. Each string is serialized with XStream object of class User
-
getLastSuccessfullyFinished
public String getLastSuccessfullyFinished(String buildTypeId)
Description copied from interface:RemoteBuildServerReturns last successful finished build instance for the specified configuration- Specified by:
getLastSuccessfullyFinishedin interfaceRemoteBuildServer- Parameters:
buildTypeId- build instance id- Returns:
- serialized object of type BuildInstanceData
-
removeBuild
public Boolean removeBuild(String buildId)
Description copied from interface:RemoteBuildServerRemoves build instance from the server history- Specified by:
removeBuildin interfaceRemoteBuildServer- Parameters:
buildId- finished build instance id- Returns:
- fake
-
schedulePersonalChangeForDeletion
public Boolean schedulePersonalChangeForDeletion(String changeId, String userId)
Description copied from interface:RemoteBuildServerMark personal change as deleted and makes it invisible for user- Specified by:
schedulePersonalChangeForDeletionin interfaceRemoteBuildServer- Parameters:
changeId- personal change iduserId- current user id.- Returns:
- fake
-
getBuildParameter
public String getBuildParameter(String buildTypeId, String key)
Description copied from interface:RemoteBuildServerReturns build parameter by parameter name.- Specified by:
getBuildParameterin interfaceRemoteBuildServer- Parameters:
buildTypeId- configuration id.key- param name.- Returns:
- serialized with XStream object of class String
-
setPersonalChangeStatus
public Boolean setPersonalChangeStatus(String changeId, int statusPriority)
Description copied from interface:RemoteBuildServersets status of personal change- Specified by:
setPersonalChangeStatusin interfaceRemoteBuildServer- Parameters:
changeId- personal change idstatusPriority- status priority (see Status.getPriority())- Returns:
- Ignored. Used for XmlRpc
-
getCanRunAndCompatibleAgents
public Vector getCanRunAndCompatibleAgents(String builtTypeId, boolean includeDisabled)
Description copied from interface:RemoteBuildServerReturns the agents those are compatible with the specified build type, and on those specified build type can be run- Specified by:
getCanRunAndCompatibleAgentsin interfaceRemoteBuildServer- Parameters:
builtTypeId- Build type idincludeDisabled- includeDisabled- Returns:
- Vector of serialized BuildAgentData objects
-
getGroupedByPoolCanRunAndCompatibleAgents
public Vector getGroupedByPoolCanRunAndCompatibleAgents(String builtTypeId, boolean includeDisabled)
Description copied from interface:RemoteBuildServerReturns the grouped by pool agents those are compatible with the specified build type, and on those specified build type can be run. If there is only one pool in the system, then result contains only one pair, and the pool data in that pair is null.- Specified by:
getGroupedByPoolCanRunAndCompatibleAgentsin interfaceRemoteBuildServer- Parameters:
builtTypeId- Build type idincludeDisabled- includeDisabled- Returns:
- Vector of serialized Pair<AgentPoolData, List<BuildAgentData>> objects
-
haveCommitDecision
public Boolean haveCommitDecision(Vector personalChangeIds)
Description copied from interface:RemoteBuildServerReturns true if at least one of the specified personal changes has non-UNKNOWN commit decision- Specified by:
haveCommitDecisionin interfaceRemoteBuildServer- Parameters:
personalChangeIds- personal change ids- Returns:
- see above
-
getModificationFiles
public Vector getModificationFiles(String modIdStr, boolean personal)
Description copied from interface:RemoteBuildServerReturns list of VcsChange structures (changed files) corresponding to modification with specified id.- Specified by:
getModificationFilesin interfaceRemoteBuildServer- Parameters:
modIdStr- id of VCS modificationpersonal- if true then files from personal change will be returned- Returns:
- see above
-
findBuildRunnerByType
public String findBuildRunnerByType(String buildTypeId, String runnerType)
Description copied from interface:RemoteBuildServerReturns the first found build runner of the specified type in the specified build configuration.- Specified by:
findBuildRunnerByTypein interfaceRemoteBuildServer- Parameters:
buildTypeId- build configuration idrunnerType- type of the runner- Returns:
- the first found runner
-
getBuildRunners
public String getBuildRunners(Vector buildTypeIds)
Description copied from interface:RemoteBuildServerReturns map from build type ids to lists of enabled build runners for the specified build types.- Specified by:
getBuildRunnersin interfaceRemoteBuildServer- Parameters:
buildTypeIds- build configuration ids- Returns:
- serialized object of type Map<String, List<BuildRunnerData>>
-
getProblemRelatedEventCounters
public String getProblemRelatedEventCounters(@NotNull Vector projectIds)
Description copied from interface:RemoteBuildServerReturns problem related event counters for specified projects.- Specified by:
getProblemRelatedEventCountersin interfaceRemoteBuildServer- Parameters:
projectIds- project ids- Returns:
- serialized map (project id -> counter)
-
-