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 boolean
belongsTo(Job job)
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.String
getName()
Getsthe full name of the job
.int
getNumber()
Gets the project build number.Run
getRun()
Gets theJob
that this pointer points to, or null if such a job no longer exists.boolean
is(Job job)
Returns true ifFingerprint.BuildPtr
points to the given job.boolean
is(Run r)
Returns true ifFingerprint.BuildPtr
points to the given run.String
toString()
-
-
-
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 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
public Run getRun()
Gets theJob
that this pointer points to, or null if such a job no longer exists.
-
is
public boolean is(Run r)
Returns true ifFingerprint.BuildPtr
points to the given run.
-
is
public boolean is(Job job)
Returns true ifFingerprint.BuildPtr
points to the given job.
-
belongsTo
public boolean belongsTo(Job job)
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.
-
-