|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BuildPromotion
Contains information necessary to reproduce a build. A build receives build promotion when it added to queue.
| Method Summary | |
|---|---|
SQueuedBuild |
addToQueue(SBuildAgent buildAgent,
java.lang.String triggeredBy)
Creates a new build on the base of this promotion (and all necessary builds for the promotions this one depends on) and adds it to the Queue. |
SQueuedBuild |
addToQueue(java.lang.String triggeredBy)
Creates a new build on the base of this promotion (and all necessary builds for the promotions this one depends on) and adds it to the Queue. |
BuildPromotion |
copy(boolean copyRevisions)
Creates copy of this build promotion (a copy will have different id). |
BuildPromotion[] |
findTops()
Return a collection of top-level build promotions for sequence builds this build promotion participates in. |
java.util.List<? extends BuildPromotion> |
getAllDependencies()
Returns the full list of snapshot dependencies (including transitive ones) of this build promotion filtered according to current user permissions. |
SBuild |
getAssociatedBuild()
Returns running or finished build associated with this promotion or null if there is no such build. |
java.util.Map<java.lang.String,java.lang.String> |
getBuildParameters()
Returns combined map of default and user defined build parameters. |
SBuildType |
getBuildType()
Returns build configuration to which this promotion corresponds |
java.lang.String |
getBuildTypeId()
Returns id of build configuration to which this promotion corresponds, same as getBuildType().getBuildTypeId() |
java.util.List<SVcsModification> |
getChanges(SelectPrevBuildPolicy policy,
boolean returnChangesIfNoPreviousBuild)
Returns changes containing in this promotion according to the specified policy. |
UserSet<SUser> |
getCommitters(SelectPrevBuildPolicy selectPrevBuildPolicy)
Returns committers of this build selected according to specified policy |
java.util.List<SVcsModification> |
getContainingChanges()
Returns changes containing in this promotion. |
java.util.Map<java.lang.String,java.lang.String> |
getDefaultBuildParameters()
Returns map of default build parameters associated with this build promotion. |
java.util.Collection<? extends BuildDependency> |
getDependedOnMe()
Returns snapshot dependencies of parent build promotions depending on this promotion. |
java.util.Collection<? extends BuildDependency> |
getDependencies()
Returns the direct snapshot dependencies of this build promotion filtered according to current user permissions. |
long |
getId()
Returns id of this promotion, promotion id is unique among all other build promotions and is not changed during promotion life cycle. |
java.lang.Long |
getLastModificationId()
Returns id of the last change associated with this promotion or null if changes collecting is not performed yet. |
int |
getNumberOfDependedOnMe()
Returns total number of parent snapshot dependencies (without permissions filtering). |
int |
getNumberOfDependencies()
Returns total number of snapshot dependencies (without permissions filtering). |
SUser |
getOwner()
For personal builds returns owner of the build. |
SBuildType |
getParentBuildType()
Returns base build configuration to which this promotion corresponds, i.e. for personal builds returns parent build configuration, not the personal build type |
java.lang.String |
getParentBuildTypeId()
For non personal builds returns same as getBuildTypeId(). |
BuildPromotion |
getPreviousBuildPromotion(SelectPrevBuildPolicy policy)
Returns previous promotion created before this one and corresponding to the specified policy. |
SQueuedBuild |
getQueuedBuild()
Returns queued build associated with this promotion or null if there is no such build in the queue |
java.util.List<BuildRevision> |
getRevisions()
Returns VCS root revisions associated with this promotion. |
java.util.Map<java.lang.String,java.lang.String> |
getUserBuildParameters()
Returns map of user-defined build parameters associated with this build promotion. |
java.util.List<VcsRootEntry> |
getVcsRootEntries()
Returns VCS root entries associated with this promotion. |
boolean |
isCanceled()
Return true if associted build is canceled |
boolean |
isEquivalentTo(BuildPromotion promotion)
Returns true if this build promotion is equivalent to specified promotion, i.e. |
boolean |
isLaterThan(BuildPromotion promotion)
Returns true if this promotion contains more recent changes comparing to the specified promotion. |
boolean |
isOutOfChangesSequence()
Returns true if there is a build started before this build promotion associated build which contains more recent changes. |
boolean |
isPartOfBuildChain()
|
boolean |
isPersonal()
Return true if this build promotion relates to personal build |
boolean |
isUsed()
Returns true if there is a reference to this build promotion from queued, running or history build. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
long getId()
@Nullable SBuildType getParentBuildType()
@Nullable SBuildType getBuildType()
@Nullable SUser getOwner()
@NotNull java.lang.String getBuildTypeId()
@NotNull java.lang.String getParentBuildTypeId()
getBuildTypeId().
For personal builds returns id of parent build configuration: getParentBuildType().getBuildTypeId()
@NotNull java.util.List<BuildRevision> getRevisions()
@NotNull java.util.List<VcsRootEntry> getVcsRootEntries()
@NotNull java.util.List<SVcsModification> getContainingChanges()
@NotNull
java.util.List<SVcsModification> getChanges(@NotNull
SelectPrevBuildPolicy policy,
boolean returnChangesIfNoPreviousBuild)
policy - policyreturnChangesIfNoPreviousBuild - whether to return changes if there is no previous build in the history.
UserSet<SUser> getCommitters(@NotNull
SelectPrevBuildPolicy selectPrevBuildPolicy)
selectPrevBuildPolicy - policy
@Nullable java.lang.Long getLastModificationId()
boolean isPersonal()
@Nullable SBuild getAssociatedBuild()
@Nullable SQueuedBuild getQueuedBuild()
boolean isLaterThan(@NotNull
BuildPromotion promotion)
promotion - promotion
@NotNull java.util.Map<java.lang.String,java.lang.String> getUserBuildParameters()
@NotNull java.util.Map<java.lang.String,java.lang.String> getDefaultBuildParameters()
@NotNull java.util.Map<java.lang.String,java.lang.String> getBuildParameters()
ParametersPreprocessor for more details.
boolean isEquivalentTo(@NotNull
BuildPromotion promotion)
promotion - build promotion
@NotNull java.util.Collection<? extends BuildDependency> getDependencies()
@NotNull java.util.List<? extends BuildPromotion> getAllDependencies()
int getNumberOfDependencies()
@NotNull java.util.Collection<? extends BuildDependency> getDependedOnMe()
int getNumberOfDependedOnMe()
BuildPromotion[] findTops()
@Nullable
SQueuedBuild addToQueue(@NotNull
java.lang.String triggeredBy)
triggeredBy - contains details about who triggered build, see also TriggeredByBuilder
@Nullable
SQueuedBuild addToQueue(@NotNull
SBuildAgent buildAgent,
@NotNull
java.lang.String triggeredBy)
buildAgent - build agent where the build is to runtriggeredBy - contains details about who triggered build, see also TriggeredByBuilder
@Nullable
BuildPromotion getPreviousBuildPromotion(@NotNull
SelectPrevBuildPolicy policy)
policy - policy
boolean isUsed()
BuildPromotion copy(boolean copyRevisions)
copyRevisions - indicates whether to copy revisions associated with this promotion or not
boolean isOutOfChangesSequence()
boolean isPartOfBuildChain()
boolean isCanceled()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||