class TravisBuildCollector extends AnyRef
Class that keeps querying Travis about a certain push event until it is found.
- Alphabetic
- By Inheritance
- TravisBuildCollector
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
TravisBuildCollector(repoOwner: String, repoName: String, branchName: String, pushCommitSha: String, pushDate: Date, travis: TravisService, pollingInterval: Int = 30000, timeoutSeconds: Int = 60)
- repoOwner
Owner of the repo of the push event
- repoName
Name of the repo of the push event
- branchName
Name of the branch of the push event
- pushCommitSha
Sha of the commit of the push event
- pushDate
Date of the push event
- travis
TravisService used to query Travis
- pollingInterval
Interval at which builds are queried
- timeoutSeconds
How long it will wait for the build to be created
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
builtIsCompleted: Boolean
Checks whether or not a build is completed.
Checks whether or not a build is completed.
- returns
Whether or not a build is completed
-
def
checkIfBuildShouldBeKnownAlready(): Unit
Checks if the timeout period for waiting before a build is created has passed.
Checks if the timeout period for waiting before a build is created has passed. Throws an exception if this is the case.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getBuildFromBuilds(builds: TravisBuilds): (Option[TravisBuild], Date)
Tries to find the correct TravisBuild within a TravisBuilds object.
Tries to find the correct TravisBuild within a TravisBuilds object. Also returns the date of the latest Build.
- builds
Builds to search in
- returns
Correct Build if found and date newest seen build
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
requestBuild: Option[TravisBuild]
Requests the build information based on if a build id is known
Requests the build information based on if a build id is known
- returns
A Travis build
-
def
requestFinishedBuild(): Future[TravisBuild]
Keeps requesting the build until it is finished asynchronously
Keeps requesting the build until it is finished asynchronously
- returns
A Futre with a finished Travis build
-
def
requestKnownBuild(): Option[TravisBuild]
Requests a build from travis of which the build id is known
Requests a build from travis of which the build id is known
- returns
A TravisBuild if it is found, None otherwise
-
def
requestUnknownBuild(): Option[TravisBuild]
Looks through the Travis builds of the push event to find the build with the corresponding commit sha.
Looks through the Travis builds of the push event to find the build with the corresponding commit sha. The builds are sorted on date, so it only looks after the push date
- returns
A TravisBuild if it is found, None otherwise
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )