Package hudson.model
Class Fingerprint.BuildPtr
java.lang.Object
hudson.model.Fingerprint.BuildPtr
- Enclosing class:
- Fingerprint
Pointer to a
Build.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true ifFingerprint.BuildPtrpoints to the given job or one of its subordinates.Job<?,?> getJob()Gets theJobthat this pointer points to, or null if such a job no longer exists.getName()Getsthe full name of the job.intGets the project build number.getRun()Gets theJobthat this pointer points to, or null if such a job no longer exists.booleanReturns true ifFingerprint.BuildPtrpoints to the given job.booleanReturns true ifFingerprint.BuildPtrpoints 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 theJobthat 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
Runcould be since then discarded.- Returns:
- A build number
-
getRun
Gets theJobthat this pointer points to, or null if such a job no longer exists. -
is
Returns true ifFingerprint.BuildPtrpoints to the given run. -
is
Returns true ifFingerprint.BuildPtrpoints to the given job. -
belongsTo
Returns true ifFingerprint.BuildPtrpoints to the given job or one of its subordinates.This is useful to check if an artifact in MavenModule belongs to MavenModuleSet.
-
toString
-