Class Build

    • Field Detail

      • job

        public final Job job
    • Constructor Detail

      • Build

        public Build​(Job job,
                     int buildNumber)
      • Build

        public Build​(Job job,
                     String permalink)
      • Build

        public Build​(Job job,
                     URL url)
    • Method Detail

      • 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()
      • isSuccess

        public boolean isSuccess()
      • isUnstable

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

        public String getResult()
      • shouldSucceed

        public Build shouldSucceed()
      • shouldFail

        public Build shouldFail()
      • shouldAbort

        public Build shouldAbort()
      • shouldBeUnstable

        public Build shouldBeUnstable()
      • 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)
      • getName

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

        public String getDisplayName()
      • stop

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