Package jetbrains.buildServer.serverSide
Interface BuildEx
-
- All Superinterfaces:
Build
,BuildPromotionOwner
,ParametersSupport
,SBuild
- All Known Implementing Classes:
BaseBuild
,BaseRunningBuild
,CompositeRunningBuild
,DummyBuild
,FinishedBuildImpl
,RunningBuildImpl
,RunningBuildWrapper
,SecuredCompositeRunningBuild
,SecuredFinishedBuildImpl
,SecuredRunningBuild
public interface BuildEx extends SBuild
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
buildProblemsChanged(List<BuildProblemData> before, List<BuildProblemData> after)
Called when build problems are changed (added, deleted or muted)void
deleteBuildProblem(SUser user, String identity, String comment)
Deletes build problem Deleting build problem may change build status to SUCCESSBuildLogEx
getBuildLog()
Returns build log.List<BuildProblem>
getBuildProblems()
Returns all build problems for this promotion with extended information about muting This method can perform rather slow as it reloads build problems from database and fills mute info from audit (reads database as well) If you don't need mute info try usingSBuild.getFailureReasons()
BuildPromotionEx
getBuildPromotion()
Returns build promotionShortStatistics
getCachedShortStatistics(boolean calculateIfAbsent)
Return cached short statistics for this build.Long
getDetachFromAgentReceivedTimestamp()
long
getDurationOnAgent()
boolean
isTimedOut()
void
muteBuildProblems(boolean muteIfTrue)
Makes all existing build problems enabled or disabled-
Methods inherited from interface jetbrains.buildServer.Build
getAgentName, getBuildId, getBuildNumber, getBuildStatus, getBuildTypeExternalId, getBuildTypeId, getBuildTypeName, getCanceledInfo, getCompilationErrorMessages, getDuration, getFinishDate, getFullName, getLogMessages, getProjectExternalId, getProjectId, getStartDate, getStatusDescriptor, getTestMessages, isFinished, isPersonal
-
Methods inherited from interface jetbrains.buildServer.serverSide.BuildPromotionOwner
getSequenceBuild
-
Methods inherited from interface jetbrains.buildServer.serverSide.ParametersSupport
getParametersProvider
-
Methods inherited from interface jetbrains.buildServer.serverSide.SBuild
addBuildProblem, addUserBuildProblem, convertToAgentTime, convertToServerTime, getAgent, getArtifactDependencies, getArtifacts, getArtifactsDirectory, getBranch, getBuildComment, getBuildDescription, getBuildFeaturesOfType, getBuildOwnParameters, getBuildStatistics, getBuildType, getChanges, getClientStartDate, getClientTimeZone, getCommitters, getContainingChanges, getCustomDataStorage, getDownloadedArtifacts, getFailureReasons, getFileContent, getFinishOnAgentDate, getFirstInternalError, getFirstInternalErrorMessage, getFullStatistics, getLabels, getOwner, getPreviousFinished, getProvidedArtifacts, getQueuedDate, getRawBuildNumber, getRecentlyFinishedBuild, getRelatedIssues, getRemoteArtifacts, getRemoteArtifactsByType, getRevisions, getServerStartDate, getShortStatistics, getStatisticValue, getStatisticValues, getTags, getTriggeredBy, getValueResolver, getVcsRootEntries, getWaitReasons, hasBuildProblemOfType, hasTests, isAgentLessBuild, isArtifactsExists, isCompositeBuild, isDetachedFromAgent, isHasInternalArtifactsOnly, isHasRelatedIssues, isInternalError, isOutdated, isOutOfChangesSequence, isPinned, isResponsibleNeeded, isStartedOnAgent, isUsedByOtherBuilds, muteBuildProblems, setBuildComment, setTags, setTags
-
-
-
-
Method Detail
-
getBuildPromotion
@NotNull BuildPromotionEx getBuildPromotion()
Description copied from interface:BuildPromotionOwner
Returns build promotion- Specified by:
getBuildPromotion
in interfaceBuildPromotionOwner
- Returns:
- see above.
-
getBuildProblems
@NotNull List<BuildProblem> getBuildProblems()
Returns all build problems for this promotion with extended information about muting This method can perform rather slow as it reloads build problems from database and fills mute info from audit (reads database as well) If you don't need mute info try usingSBuild.getFailureReasons()
- Returns:
- see above
- Since:
- 7.1
-
deleteBuildProblem
void deleteBuildProblem(@NotNull SUser user, @NotNull String identity, @Nullable String comment)
Deletes build problem Deleting build problem may change build status to SUCCESS- Parameters:
user
- user that will be used in auditidentity
- identiry of build problem to be removedcomment
- comment for audit- Since:
- 7.1
-
muteBuildProblems
void muteBuildProblems(boolean muteIfTrue)
Makes all existing build problems enabled or disabled- Parameters:
muteIfTrue
- pass true to make build successful, false to make existing problems visible again- Since:
- 8.0
-
buildProblemsChanged
void buildProblemsChanged(@NotNull List<BuildProblemData> before, @NotNull List<BuildProblemData> after)
Called when build problems are changed (added, deleted or muted)- Parameters:
before
- problems before changeafter
- problems after change
-
getCachedShortStatistics
@Nullable ShortStatistics getCachedShortStatistics(boolean calculateIfAbsent)
Return cached short statistics for this build.- Parameters:
calculateIfAbsent
- if true, then statistics is calculated if it is not cached yet, if false and there is no statistics in cache, then null is returned- Returns:
- see above
- Since:
- 2017.2.1
-
isTimedOut
boolean isTimedOut()
- Returns:
- true if this build finished by timeout
- Since:
- 2020.2
-
getDurationOnAgent
long getDurationOnAgent()
- Returns:
- build duration in seconds on agent or 0 if the build wasn't running on agent
- Since:
- 2020.2
-
getDetachFromAgentReceivedTimestamp
@Nullable Long getDetachFromAgentReceivedTimestamp()
- Returns:
- timestamp when this build was attempted to detach from agent
- Since:
- 2020.2.1
-
getBuildLog
@NotNull BuildLogEx getBuildLog()
Description copied from interface:SBuild
Returns build log.- Specified by:
getBuildLog
in interfaceSBuild
- Returns:
- build log.
-
-