public interface RepositoryBuildStatus
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getBuildNumber()
An identifier for the specific run that resulted in this build status.
|
Optional<BuildServer> |
getBuildServer() |
BuildStatusLinks |
getBuildStatusLinks() |
Optional<Commit> |
getCommit()
Returns the commit this build status is attached to.
|
String |
getCommitId() |
Date |
getCreatedDate()
The date tha the build status was first created.
|
Optional<String> |
getDescription()
A human readable description of the build that was run.
|
Optional<Long> |
getDuration() |
String |
getKey()
The key representing the build.
|
Optional<String> |
getName()
A human readable name of the build that was run.
|
Optional<String> |
getParent()
The key of the parent plan for this build.
|
Optional<String> |
getRef()
The fully qualified ref that the build is associated with.
|
Repository |
getRepository()
The repository that the build is associated with.
|
BuildState |
getState()
The outcome of the build (
BuildState.SUCCESSFUL or BuildState.FAILED or
BuildState.INPROGRESS if the build hasn't completed yet. |
Optional<TestResults> |
getTestResults()
A high level summary of which tests passed and failed.
|
Date |
getUpdatedDate()
The date that the build status for this repository, commitId and key was last updated.
|
String |
getUrl()
A url to this build in the CI tool that ran it, so that users are able to navigate there for more information.
|
@Nonnull Optional<String> getBuildNumber()
Optional.empty()
otherwise@Nonnull Optional<BuildServer> getBuildServer()
Optional.empty()
otherwise@Nonnull Optional<Commit> getCommit()
Optional.empty()
otherwise@Nonnull BuildStatusLinks getBuildStatusLinks()
@Nonnull Date getCreatedDate()
getUpdatedDate()
will change.@Nonnull Optional<String> getDescription()
Optional.empty()
if none exists@Nonnull Optional<Long> getDuration()
null
if the duration is not provided@Nonnull String getKey()
@Nonnull Optional<String> getName()
Optional.empty()
is none exists@Nonnull Optional<String> getParent()
Optional.empty()
otherwise@Nonnull Optional<String> getRef()
Optional.empty()
if the CI tool
did not provide one@Nonnull Repository getRepository()
@Nonnull BuildState getState()
BuildState.SUCCESSFUL
or BuildState.FAILED
or
BuildState.INPROGRESS
if the build hasn't completed yet.BuildState
@Nonnull Optional<TestResults> getTestResults()
TestResults
for the build, if there are any, Optional.empty()
otherwise@Nonnull Date getUpdatedDate()
Copyright © 2021 Atlassian. All rights reserved.
View cookie preferences