|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PersonalBuildManager
Provides information about personal builds.
| Method Summary | |
|---|---|
SQueuedBuild |
addRemoteRunToQueue(BuildType buildType,
BuildAgent agent,
long changeListId,
java.lang.String comment)
Schedules configuration to run specified personal changes on specified agent. |
SQueuedBuild |
addRemoteRunToQueue(BuildType buildType,
long changeListId,
java.lang.String comment)
Schedules configuration to run specified personal changes. |
java.util.List<jetbrains.buildServer.RemoteBuildData> |
collectRemoteBuildDataForUser(long userId)
Returns collection RemoteBuildData for all personal builds ran by the given user. |
jetbrains.buildServer.RemoteBuildData |
findRemoteBuildDataByBuildId(long id)
Finds personal run information by build instance id. |
java.util.List<jetbrains.buildServer.RemoteBuildData> |
findRemoteBuildDataByChangesId(long id)
Finds personal build run information objects by change id. |
SBuildType |
findRemoteBuildType(java.lang.String sourceId,
long changeId)
Finds personal configuration by source configuration id and perosnal change id. |
RemoteBuildType |
findRemoteBuildTypeByInstanceId(long buildId)
Returns personal configuration related to the given build instance id. |
byte[] |
getContent(VcsModification modification,
VcsChangeInfo change)
Returns sent content of the specified file. |
byte[] |
getCurrentRepositoryContentForPersonallyChangedFile(VcsModification modification,
java.lang.String fileName,
SBuildType buildType)
Returns last vcs repository content of the file specified. |
SVcsModification |
getModification(long changesId)
Returns SVcsModification object for the personal modification with the given id. |
java.util.List<SVcsModification> |
getModifications(long userId)
Returns collection of SVcsModification modifications ran by the given user. |
PersonalChangeInfo |
getPersonalChangeInfo(long id)
returns information about personal change by the change id (the same as modification id) |
java.lang.String |
getPersonalChangeRelativeFilePath(java.lang.String original,
long startedBuildId)
Returns relative personal change path mapped when personal patch was built to send it to an agent. |
boolean |
isApplicable(long personalChangeId,
java.util.List<VcsRootInstanceEntry> vcsRootEntries)
Returns true if personal change files can be applied to VCS roots of the specified build configuration. |
boolean |
isApplicable(SBuildType buildType,
java.util.Collection<java.lang.String> personalChangeFilePaths,
boolean searchThroughDependencies)
Returns true if personal change files can be applied to VCS roots of the specified build configuration. |
boolean |
isApplicable(VcsRootInstanceEntry vcsRootEntry,
java.util.Collection<java.lang.String> personalChangeFilePaths)
Returns true if personal change files can be applied to specified VCS root entry |
long |
publishChangeList(PersonalChangeInfo changeInfo,
java.io.InputStream input)
Publishes personal changes. |
void |
saveRemoteRunInstanceId(jetbrains.buildServer.RemoteBuildData remoteBuildData,
long buildId)
Attaches new build id the the given remote run. |
void |
schedulePersonalChangeForDeletion(long changeId,
User user)
Schedules personal change for deletion. |
void |
setPersonalChangeStatus(long changeId,
Status status)
Changes personal change commit status (if the change was committed successfully). |
| Method Detail |
|---|
java.util.List<jetbrains.buildServer.RemoteBuildData> collectRemoteBuildDataForUser(long userId)
RemoteBuildData for all personal builds ran by the given user.
userId - specified user.
java.util.List<SVcsModification> getModifications(long userId)
SVcsModification modifications ran by the given user.
userId - specified user.
@Nullable SVcsModification getModification(long changesId)
SVcsModification object for the personal modification with the given id.
changesId - personal change id.
void saveRemoteRunInstanceId(jetbrains.buildServer.RemoteBuildData remoteBuildData,
long buildId)
remoteBuildData - specified remote run data.buildId - given build id.@Nullable RemoteBuildType findRemoteBuildTypeByInstanceId(long buildId)
buildId - specified build id.
@Nullable
SQueuedBuild addRemoteRunToQueue(@NotNull
BuildType buildType,
long changeListId,
java.lang.String comment)
buildType - specified build configuration.changeListId - specified personal change id.comment - user comment.
@Nullable
SQueuedBuild addRemoteRunToQueue(@NotNull
BuildType buildType,
@NotNull
BuildAgent agent,
long changeListId,
java.lang.String comment)
buildType - specified build configuration.agent - specified agent.changeListId - specified personal change id.comment - user comment.
long publishChangeList(PersonalChangeInfo changeInfo,
java.io.InputStream input)
throws java.io.IOException
changeInfo - personal changes information object.input - input stream containing personal changes.
java.io.IOException - exception if the publishing process failes.java.util.List<jetbrains.buildServer.RemoteBuildData> findRemoteBuildDataByChangesId(long id)
id - specified change id.
@Nullable
SBuildType findRemoteBuildType(java.lang.String sourceId,
long changeId)
sourceId - specified source configuration id.changeId - specofied personal change id.
jetbrains.buildServer.RemoteBuildData findRemoteBuildDataByBuildId(long id)
id - specified build id.
RemoteBuildData information object for the build intance.
void setPersonalChangeStatus(long changeId,
Status status)
changeId - specified change id.status - commit status.@Nullable PersonalChangeInfo getPersonalChangeInfo(long id)
id - personal change id
void schedulePersonalChangeForDeletion(long changeId,
User user)
changeId - specified change id.user - specified user. Only user who ran the change can delete it.
byte[] getContent(VcsModification modification,
VcsChangeInfo change)
throws VcsException
modification - specified personal modification.change - specified file change.
VcsException - throws exception if file content cannot be read.
byte[] getCurrentRepositoryContentForPersonallyChangedFile(VcsModification modification,
java.lang.String fileName,
SBuildType buildType)
throws VcsException
modification - specified modification.fileName - specified file relative name.buildType - specified configuration.
VcsException - throws exception if content cannot be loaded from the repository.
java.lang.String getPersonalChangeRelativeFilePath(java.lang.String original,
long startedBuildId)
original - - original change full file path.startedBuildId - - build id when change was used.
boolean isApplicable(long personalChangeId,
@NotNull
java.util.List<VcsRootInstanceEntry> vcsRootEntries)
personalChangeId - personal change idvcsRootEntries - vcs root entries
boolean isApplicable(@NotNull
SBuildType buildType,
@NotNull
java.util.Collection<java.lang.String> personalChangeFilePaths,
boolean searchThroughDependencies)
buildType - build configurationpersonalChangeFilePaths - paths from the personal changesearchThroughDependencies - whether to search through build configuration dependencies or not
boolean isApplicable(@NotNull
VcsRootInstanceEntry vcsRootEntry,
@NotNull
java.util.Collection<java.lang.String> personalChangeFilePaths)
vcsRootEntriy - VCS root entrypersonalChangeFilePaths - paths to check
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||