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 String
addToQueue(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.String
findBuildInstanceById(String id)
Returns build instance data for the specified idString
findBuildRunnerByType(String buildTypeId, String runnerType)
Returns the first found build runner of the specified type in the specified build configuration.String
findFailedTests(String fileFullPath, Vector _testNames)
WARNING!!! If you rename this method, make sure you handled its usage injetbrains.buildServer.usageStatistics.impl.providers.IDEFeaturesUsageStatisticsProvider
String
findTests(String fileFullPath, Vector _testNames)
WARNING!!! If you rename this method, make sure you handled its usage injetbrains.buildServer.usageStatistics.impl.providers.IDEFeaturesUsageStatisticsProvider
String
findUserById(String userId)
Returns user for the specified idBoolean
finishRemoteDebugSession(String personalChangeId, String buildTypeId)
Finishes the current remote debug session on the certain agent, which is determined by personal change id and build type idVector
getBuildFailedTests(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.Vector
getBuildInstanceLogMessages(String buildId, int skipMessages)
Returns messages logged for the specified build instanceVector
getBuildInstanceLogMessages(String buildId, int skipMessages, int maxCount)
Returns limited number of messages logged for the specified build instanceVector
getBuildInstanceModifications(String buildId, int policyId, boolean includeModificationsIfPreviousBuildIsAbsent)
Returns modifications detected between the specified build instance and previous build, selected according to the specified policyString
getBuildParameter(String buildTypeId, String key)
Returns build parameter by parameter name.String
getBuildParameters(String buildTypeId)
Returns the serialized build parameters map of build type specified.String
getBuildRunners(Vector buildTypeIds)
Returns map from build type ids to lists of enabled build runners for the specified build types.String
getBuildsWithArtifacts(Vector paths, Vector buildTypeIds)
Returns last finished builds those contain given artifact files.Vector
getBuildTypesWithArtifactDependencies(Vector buildTypeIds)
Returns the list of build types that have artifact dependencies.Vector
getBuildTypesWithTests(Vector buildTypeIds)
Returns the list of build types those have tests.Vector
getCanRunAndCompatibleAgents(String builtTypeId, boolean includeDisabled)
Returns the agents those are compatible with the specified build type, and on those specified build type can be runVector
getCommitters(String buildId, int selectPrevBuildPolicy)
Returns list of committers who made changes between the previous build selected according to the policy, and the specified oneVector
getCompilationErrors(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 runVector
getFinishedBuilds(String id)
Returns all finished build instances in the specified configurationVector
getGroupedByPoolCanRunAndCompatibleAgents(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.String
getLastFinished(String buildTypeId)
Returns last finished build in the specified configurationString
getLastSuccessfullyFinished(String buildTypeId)
Returns last successful finished build instance for the specified configurationVector
getModificationFiles(String modIdStr, boolean personal)
Returns list of VcsChange structures (changed files) corresponding to modification with specified id.Vector
getModificationsSinceLastSuccessful(String buildTypeId)
Returns all modifications detected since last successfully finished build has been runString
getNewFinishedBuilds(Vector buildIds, Vector buildTypeIds)
Returns newly finished buildsString
getParameters(String buildTypeId)
Returns the serialized build and config parameters map of build type specified.Vector
getPendingChanges(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 changeString
getProblemRelatedEventCounters(Vector projectIds)
Returns problem related event counters for specified projects.Vector
getProjectCommitters(String projectId)
Returns list of project committersVector
getRegisteredAgents()
Returns all agents registered on the serverVector
getRegisteredProjects(boolean loadInstances)
Returns snapshots for all projects registered on the serverVector
getRelatedProjects(Vector buildTypeIds)
Returns projects of specified build configurations and all their parents in project hierarchy.String
getResolvedArtifactDependencies(Vector buildTypeIds)
Resolves artifact dependencies for the specified build types.Vector
getResponsibilityIds(String userId)
Returns id list of all the configuration which are under specified user responsibilityVector
getRunningBuilds(String id)
Returns all running build for the specified configurationVector
getUsers()
Returns all usersBoolean
haveCommitDecision(Vector personalChangeIds)
Returns true if at least one of the specified personal changes has non-UNKNOWN commit decisionBoolean
isSequenceBuildType(String buildTypeId)
Returns whether the build type is a sequence one (has snapshot dependencies)String
lookUpBuildsWithArtifacts(Vector paths, Vector buildTypeIds)
Returns last finished builds those contain given artifact files.Boolean
muteProblems(Vector itemIdsVector, boolean unmuteWhenFixed, String unmuteTimestampStr, Vector buildTypeIdsVector, Vector buildIdsVector, String userId, String comment)
Mutes the specified items.Boolean
removeBuild(String buildId)
Removes build instance from the server historyBoolean
repeatRemoteDebugSession(String personalChangeId, String buildTypeId)
Repeats the current remote debug session on the certain agent, which is determined by personal change id and build type idBoolean
repeatRemoteDebugSessionWithNewChanges(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 idBoolean
schedulePersonalChangeForDeletion(String changeId, String userId)
Mark personal change as deleted and makes it invisible for userBoolean
setPersonalChangeStatus(String changeId, int statusPriority)
sets status of personal changeBoolean
stopBuild(String buildId, String userId, String reason)
Schedules specified build to be stoppedBoolean
stopPendingPersonalBuild(String personalChangeId, String buildTypeId, String userId, String reason)
Removes the specified personal build from the queueBoolean
unmuteProblems(Vector itemIdsVector, String userId, String comment)
Unmutes the specified items.Boolean
updateResponsibility(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:RemoteBuildServer
Returns all agents registered on the server- Specified by:
getRegisteredAgents
in 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:RemoteBuildServer
Returns snapshots for all projects registered on the server- Specified by:
getRegisteredProjects
in 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:RemoteBuildServer
Returns projects of specified build configurations and all their parents in project hierarchy.- Specified by:
getRelatedProjects
in 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:RemoteBuildServer
Returns messages logged for the specified build instance- Specified by:
getBuildInstanceLogMessages
in 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:RemoteBuildServer
Returns limited number of messages logged for the specified build instance- Specified by:
getBuildInstanceLogMessages
in 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:RemoteBuildServer
Returns all running build for the specified configuration- Specified by:
getRunningBuilds
in 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:RemoteBuildServer
Returns all finished build instances in the specified configuration- Specified by:
getFinishedBuilds
in 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:RemoteBuildServer
Returns failed tests in the specified build instance, for running build currently executing test will be added to the list too.- Specified by:
getBuildFailedTests
in 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:RemoteBuildServer
Returns modifications detected between the specified build instance and previous build, selected according to the specified policy- Specified by:
getBuildInstanceModifications
in 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:RemoteBuildServer
Returns file content, specified by the VcsChange, at the moment right after specified modification has been made- Specified by:
getContentAfter
in 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:RemoteBuildServer
Returns file content, specified by the VcsChange, at the moment right after specified modification has been made for personal change- Specified by:
getPersonalContentAfter
in 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:RemoteBuildServer
Returns file content, which corresponded to file before specified modification has been made for personal change- Specified by:
getPersonalContentBefore
in 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:RemoteBuildServer
Returns file content, which corresponded to file before specified modification has been made- Specified by:
getContentBefore
in 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:RemoteBuildServer
Returns last finished build in the specified configuration- Specified by:
getLastFinished
in 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:RemoteBuildServer
Returns newly finished builds- Specified by:
getNewFinishedBuilds
in 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:RemoteBuildServer
Returns compilation errors of the specified build- Specified by:
getCompilationErrors
in interfaceRemoteBuildServer
- Parameters:
buildInstanceId
- build id- Returns:
- Vector of strings
-
getPendingChanges
public Vector getPendingChanges(String buildTypeId)
Description copied from interface:RemoteBuildServer
Returns all changes detected but not run for the specified configuration- Specified by:
getPendingChanges
in 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:RemoteBuildServer
Returns all modifications detected since last successfully finished build has been run- Specified by:
getModificationsSinceLastSuccessful
in 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:RemoteBuildServer
Returns build instance data for the specified id- Specified by:
findBuildInstanceById
in 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:RemoteBuildServer
Returns the serialized build parameters map of build type specified.- Specified by:
getBuildParameters
in 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:RemoteBuildServer
Returns the serialized build and config parameters map of build type specified.- Specified by:
getParameters
in 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:
findFailedTests
in 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:
findTests
in 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:RemoteBuildServer
Returns whether the build type is a sequence one (has snapshot dependencies)- Specified by:
isSequenceBuildType
in 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:RemoteBuildServer
Mutes the specified items. If both buildTypeIds and buildIds are empty, mutes items in projects.- Specified by:
muteProblems
in interfaceRemoteBuildServer
- Parameters:
itemIdsVector
- list of the itemids
unmuteWhenFixed
- 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:RemoteBuildServer
Unmutes the specified items.- Specified by:
unmuteProblems
in interfaceRemoteBuildServer
- Parameters:
itemIdsVector
- list of the itemids
userId
- 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:RemoteBuildServer
Updates responsibility for the specified items.- Specified by:
updateResponsibility
in interfaceRemoteBuildServer
- Parameters:
itemIdsVector
- list of the itemids
newStateName
- name of the newresponsibility state
responsibleUserId
- 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:RemoteBuildServer
Returns id list of all the configuration which are under specified user responsibility- Specified by:
getResponsibilityIds
in 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:RemoteBuildServer
Returns user for the specified id- Specified by:
findUserById
in interfaceRemoteBuildServer
- Parameters:
userId
- TeamCity user id- Returns:
- serialized with XStream object of class User
-
getUsers
public Vector getUsers()
Description copied from interface:RemoteBuildServer
Returns all users- Specified by:
getUsers
in interfaceRemoteBuildServer
- Returns:
- serialized with XStream vector of UserData
-
getProjectCommitters
public Vector getProjectCommitters(String projectId)
Description copied from interface:RemoteBuildServer
Returns list of project committers- Specified by:
getProjectCommitters
in 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:RemoteBuildServer
Adds one or more builds in the queue. The information about builds to add in queue is passed as Vector of serializedAddToQueueRequest
objects.- Specified by:
addToQueue
in interfaceRemoteBuildServer
- Parameters:
addToQueueRequests
- vector of serializedAddToQueueRequest
objectsrawTriggeredBy
- triggered by text (see alsoTriggeredByBuilder
)- Returns:
- serialized
AddToQueueResult
-
getResolvedArtifactDependencies
@NotNull public String getResolvedArtifactDependencies(@NotNull Vector buildTypeIds)
Description copied from interface:RemoteBuildServer
Resolves artifact dependencies for the specified build types.- Specified by:
getResolvedArtifactDependencies
in 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:RemoteBuildServer
Returns the list of build types that have artifact dependencies.- Specified by:
getBuildTypesWithArtifactDependencies
in 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:RemoteBuildServer
Returns the list of build types those have tests.- Specified by:
getBuildTypesWithTests
in 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:RemoteBuildServer
Returns 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:
getBuildsWithArtifacts
in 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:RemoteBuildServer
Returns last finished builds those contain given artifact files. Performs history lookup to find older build that may have contained the path.- Specified by:
lookUpBuildsWithArtifacts
in 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:RemoteBuildServer
Schedules specified build to be stopped- Specified by:
stopBuild
in 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:RemoteBuildServer
Removes the specified personal build from the queue- Specified by:
stopPendingPersonalBuild
in 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:RemoteBuildServer
Repeats the current remote debug session on the certain agent, which is determined by personal change id and build type id- Specified by:
repeatRemoteDebugSession
in 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:RemoteBuildServer
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 id- Specified by:
repeatRemoteDebugSessionWithNewChanges
in 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:RemoteBuildServer
Finishes the current remote debug session on the certain agent, which is determined by personal change id and build type id- Specified by:
finishRemoteDebugSession
in 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:RemoteBuildServer
Fetches binary data from the server.- Specified by:
fetchData
in 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:RemoteBuildServer
Returns specified file content at the moment when specified build has been run- Specified by:
getFileContent
in 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:RemoteBuildServer
Returns list of committers who made changes between the previous build selected according to the policy, and the specified one- Specified by:
getCommitters
in 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:RemoteBuildServer
Returns last successful finished build instance for the specified configuration- Specified by:
getLastSuccessfullyFinished
in interfaceRemoteBuildServer
- Parameters:
buildTypeId
- build instance id- Returns:
- serialized object of type BuildInstanceData
-
removeBuild
public Boolean removeBuild(String buildId)
Description copied from interface:RemoteBuildServer
Removes build instance from the server history- Specified by:
removeBuild
in interfaceRemoteBuildServer
- Parameters:
buildId
- finished build instance id- Returns:
- fake
-
schedulePersonalChangeForDeletion
public Boolean schedulePersonalChangeForDeletion(String changeId, String userId)
Description copied from interface:RemoteBuildServer
Mark personal change as deleted and makes it invisible for user- Specified by:
schedulePersonalChangeForDeletion
in interfaceRemoteBuildServer
- Parameters:
changeId
- personal change iduserId
- current user id.- Returns:
- fake
-
getBuildParameter
public String getBuildParameter(String buildTypeId, String key)
Description copied from interface:RemoteBuildServer
Returns build parameter by parameter name.- Specified by:
getBuildParameter
in 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:RemoteBuildServer
sets status of personal change- Specified by:
setPersonalChangeStatus
in 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:RemoteBuildServer
Returns the agents those are compatible with the specified build type, and on those specified build type can be run- Specified by:
getCanRunAndCompatibleAgents
in 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:RemoteBuildServer
Returns 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:
getGroupedByPoolCanRunAndCompatibleAgents
in 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:RemoteBuildServer
Returns true if at least one of the specified personal changes has non-UNKNOWN commit decision- Specified by:
haveCommitDecision
in interfaceRemoteBuildServer
- Parameters:
personalChangeIds
- personal change ids- Returns:
- see above
-
getModificationFiles
public Vector getModificationFiles(String modIdStr, boolean personal)
Description copied from interface:RemoteBuildServer
Returns list of VcsChange structures (changed files) corresponding to modification with specified id.- Specified by:
getModificationFiles
in 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:RemoteBuildServer
Returns the first found build runner of the specified type in the specified build configuration.- Specified by:
findBuildRunnerByType
in 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:RemoteBuildServer
Returns map from build type ids to lists of enabled build runners for the specified build types.- Specified by:
getBuildRunners
in 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:RemoteBuildServer
Returns problem related event counters for specified projects.- Specified by:
getProblemRelatedEventCounters
in interfaceRemoteBuildServer
- Parameters:
projectIds
- project ids- Returns:
- serialized map (project id -> counter)
-
-