Class RepositoryBuildStatusSetRequest

java.lang.Object
com.atlassian.bitbucket.build.status.RepositoryBuildStatusSetRequest

public final class RepositoryBuildStatusSetRequest extends Object
Since:
7.6
  • Method Details

    • getBuildNumber

      @Nullable public String getBuildNumber()
      Returns:
      an identifier for the specific run that resulted in this build status
    • getCommitId

      @Nonnull public String getCommitId()
      Returns:
      the commit hash that the build was run against
    • getDescription

      @Nullable public String getDescription()
      Returns:
      a short description of the build status
    • getDuration

      @Nullable public Long getDuration()
      Returns:
      the length of time taken to run the build, in seconds
    • getLastUpdated

      @Nonnull public Date getLastUpdated()
      Returns:
      the time this build was last updated
      Since:
      7.19
    • getKey

      @Nonnull public String getKey()
      Returns:
      the key for the build that this status is associated with
    • getName

      @Nullable public String getName()
      Returns:
      the name of the build
    • getParent

      @Nullable public String getParent()
      Returns:
      the identifier for the parent of the plan or job that produced this build status
    • getRef

      @Nullable public String getRef()
      Returns:
      the fully qualified ref (e.g. refs/heads/master) that this build was run against, or null if it is not known or not run on a ref
    • getRepository

      @Nonnull public Repository getRepository()
      Returns:
      the repository that this build status was built against
    • getState

      @Nonnull public BuildState getState()
      Returns:
      the resulting BuildState of the build
    • getTestResults

      @Nullable public TestResults getTestResults()
      Returns:
      the test results for this build
    • getUrl

      @Nonnull public String getUrl()
      Returns:
      the URL to navigate to this build status in the CI tool