Package hudson.model
Class Fingerprint.BuildPtr
java.lang.Object
hudson.model.Fingerprint.BuildPtr
- Enclosing class:
- Fingerprint
Pointer to a
Build
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true ifFingerprint.BuildPtr
points to the given job or one of its subordinates.Job<?,
?> getJob()
Gets theJob
that this pointer points to, or null if such a job no longer exists.getName()
Getsthe full name of the job
.int
Gets the project build number.getRun()
Gets theJob
that this pointer points to, or null if such a job no longer exists.boolean
Returns true ifFingerprint.BuildPtr
points to the given job.boolean
Returns true ifFingerprint.BuildPtr
points to the given run.toString()
-
Constructor Details
-
BuildPtr
-
BuildPtr
-
-
Method Details
-
getName
Getsthe full name of the job
. Such job could be since then removed, so there might not be a correspondingJob
.- Returns:
- A name of the job
-
getJob
Gets theJob
that this pointer points to, or null if such a job no longer exists. -
getNumber
@Exported @NonNull public int getNumber()Gets the project build number.Such
Run
could be since then discarded.- Returns:
- A build number
-
getRun
Gets theJob
that this pointer points to, or null if such a job no longer exists. -
is
Returns true ifFingerprint.BuildPtr
points to the given run. -
is
Returns true ifFingerprint.BuildPtr
points to the given job. -
belongsTo
Returns true ifFingerprint.BuildPtr
points to the given job or one of its subordinates.This is useful to check if an artifact in MavenModule belongs to MavenModuleSet.
-
toString
-