Package hudson.model
Class Fingerprint.BuildPtr
- java.lang.Object
-
- hudson.model.Fingerprint.BuildPtr
-
- Enclosing class:
- Fingerprint
@ExportedBean(defaultVisibility=2) public static class Fingerprint.BuildPtr extends Object
Pointer to aBuild.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbelongsTo(Job job)Returns 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.StringgetName()Getsthe full name of the job.intgetNumber()Gets the project build number.RungetRun()Gets theJobthat this pointer points to, or null if such a job no longer exists.booleanis(Job job)Returns true ifFingerprint.BuildPtrpoints to the given job.booleanis(Run r)Returns true ifFingerprint.BuildPtrpoints to the given run.StringtoString()
-
-
-
Method Detail
-
getName
@Exported @NonNull public String 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
@WithBridgeMethods(value=AbstractProject.class, castRequired=true) public 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
public Run getRun()
Gets theJobthat this pointer points to, or null if such a job no longer exists.
-
is
public boolean is(Run r)
Returns true ifFingerprint.BuildPtrpoints to the given run.
-
is
public boolean is(Job job)
Returns true ifFingerprint.BuildPtrpoints to the given job.
-
belongsTo
public boolean belongsTo(Job job)
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.
-
-