public interface PersonalBuildManager
Modifier and Type | Method and Description |
---|---|
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.
|
byte[] |
applyAndGetContent(byte[] originData,
VcsModification modification,
VcsChangeInfo change)
Returns applied patch from specified file on specified original data.
|
java.util.List<BuildPromotion> |
findBuildPromotionsByChangesId(long id)
Finds personal build promotions by change id.
|
java.util.List<BuildPromotion> |
findBuildPromotionsByUserId(long userId)
Finds personal build promotions by user 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)
Deprecated.
since 10.0, not used in TC code anymore
|
boolean |
isRelated(VcsRootInstanceEntry vcsRootEntry,
java.util.Collection<java.lang.String> personalChangeFilePaths)
Deprecated.
since 10.0, not used in TC code anymore
|
long |
publishChangeList(PersonalChangeInfo changeInfo,
java.io.InputStream input)
Deprecated.
since 2019.1. Use
publishChangeList(PersonalChangeInfo, InputStream, PersonalChangeFormatType) instead. |
long |
publishChangeList(PersonalChangeInfo changeInfo,
java.io.InputStream input,
PersonalChangeFormatType type)
Publishes personal changes.
|
void |
schedulePersonalChangeForDeletion(long changeId,
User user)
Schedules personal change for deletion.
|
void |
setDescription(long personalChangeId,
java.lang.String newDescription)
Change description of the personal modification
|
void |
setPersonalChangeStatus(long changeId,
Status status)
Changes personal change commit status (if the change was committed successfully).
|
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.@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.@Deprecated long publishChangeList(PersonalChangeInfo changeInfo, java.io.InputStream input) throws java.io.IOException
publishChangeList(PersonalChangeInfo, InputStream, PersonalChangeFormatType)
instead.changeInfo
- personal changes information object.input
- input stream containing personal changes.java.io.IOException
- exception if the publishing process fails.long publishChangeList(PersonalChangeInfo changeInfo, java.io.InputStream input, PersonalChangeFormatType type) throws java.io.IOException
changeInfo
- personal changes information object.input
- input stream containing personal changes.type
- type of patch format (binary of unified diff).java.io.IOException
- exception if the publishing process fails.@NotNull java.util.List<BuildPromotion> findBuildPromotionsByChangesId(long id)
id
- specified change id.@NotNull java.util.List<BuildPromotion> findBuildPromotionsByUserId(long userId)
userId
- specified user id.void setPersonalChangeStatus(long changeId, Status status)
changeId
- specified change id.status
- commit status.@Nullable PersonalChangeInfo getPersonalChangeInfo(long id)
id
- personal change idvoid 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[] applyAndGetContent(byte[] originData, VcsModification modification, VcsChangeInfo change) throws VcsException
originData
- original data which will be used as base for patch.modification
- specified personal modification.change
- specified file change.VcsException
- throws exception if file content cannot be read or patch cannot be applied.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 entriesboolean 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@Deprecated boolean isApplicable(@NotNull VcsRootInstanceEntry vcsRootEntry, @NotNull java.util.Collection<java.lang.String> personalChangeFilePaths)
vcsRootEntry
- VCS root entrypersonalChangeFilePaths
- paths to check@Deprecated boolean isRelated(@NotNull VcsRootInstanceEntry vcsRootEntry, @NotNull java.util.Collection<java.lang.String> personalChangeFilePaths)
vcsRootEntry
- VCS root entrypersonalChangeFilePaths
- paths to checkvoid setDescription(long personalChangeId, @NotNull java.lang.String newDescription)
personalChangeId
- personal change idnewDescription
- must not be empty