Class Build

All Implemented Interfaces:
CapybaraPortingLayer
Direct Known Subclasses:
MatrixBuild, MatrixRun, MavenBuild, MavenModuleBuild

public class Build extends ContainerPageObject
Author:
Kohsuke Kawaguchi
  • Field Details

    • job

      public final Job job
  • Constructor Details

    • Build

      public Build(Job job, int buildNumber)
    • Build

      public Build(Job job, String permalink)
    • Build

      public Build(Job job, URL url)
  • Method Details

    • as

      public <T extends Build> T as(Class<T> type)
      "Casts" this object into a subtype by creating the specified type
    • delete

      public void delete()
    • waitUntilStarted

      public Build waitUntilStarted()
    • waitUntilStarted

      public Build waitUntilStarted(int timeout)
    • hasStarted

      public boolean hasStarted()
    • waitUntilFinished

      public Build waitUntilFinished()
    • waitUntilFinished

      public Build waitUntilFinished(int timeout)
    • isInProgress

      public boolean isInProgress()
      Checks if the build is in progress, that is the build has started and not yet completed.
    • getNumber

      public int getNumber()
    • getConsoleUrl

      public URL getConsoleUrl()
    • getConsoleTextUrl

      public URL getConsoleTextUrl()
    • getStatusUrl

      public URL getStatusUrl()
    • openStatusPage

      public void openStatusPage()
    • getConsole

      public String getConsole()
    • shouldContainsConsoleOutput

      @Deprecated public Build shouldContainsConsoleOutput(String fragment)
    • shouldNotContainsConsoleOutput

      @Deprecated public Build shouldNotContainsConsoleOutput(String fragment)
      Deprecated.
      Use @linkMatchers.not(org.hamcrest.Matcher<T>)(Matchers.containsRegexp(java.lang.String)) instead.
    • isSuccess

      public boolean isSuccess()
    • isUnstable

      public boolean isUnstable()
      Returns if the current build is unstable.
    • getResult

      public String getResult()
    • getArtifact

      public Artifact getArtifact(String path)
    • getArtifacts

      public List<Artifact> getArtifacts()
    • shouldSucceed

      public Build shouldSucceed()
    • shouldFail

      public Build shouldFail()
    • shouldAbort

      public Build shouldAbort()
    • shouldBeUnstable

      public Build shouldBeUnstable()
    • shouldBe

      public Build shouldBe(Build.Result result)
    • getNode

      public Node getNode()
    • shouldExist

      public void shouldExist()
      Does this object exist?
    • shouldNotExist

      public void shouldNotExist()
    • getChanges

      public Changes getChanges()
    • keepForever

      public void keepForever(boolean keep)
    • toString

      public String toString()
      Overrides:
      toString in class PageObject
    • getName

      public String getName()
      Returns the human-readable name of this build.
      Returns:
      the name
    • getDisplayName

      public String getDisplayName()
    • stop

      public void stop()
      Stops the build if it's in progress.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class ContainerPageObject
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ContainerPageObject