@ExportedBean(defaultVisibility=2) public static class Fingerprint.BuildPtr extends Object
Build
.Constructor and Description |
---|
BuildPtr(Run run) |
BuildPtr(String name,
int number) |
Modifier and Type | Method and Description |
---|---|
boolean |
belongsTo(Job job)
Returns true if
Fingerprint.BuildPtr points to the given job
or one of its subordinates. |
Job<?,?> |
getJob()
Gets the
Job that this pointer points to,
or null if such a job no longer exists. |
String |
getName()
Gets
the full name of the job . |
int |
getNumber()
Gets the project build number.
|
Run |
getRun()
Gets the
Job that this pointer points to,
or null if such a job no longer exists. |
boolean |
is(Job job)
Returns true if
Fingerprint.BuildPtr points to the given job. |
boolean |
is(Run r)
Returns true if
Fingerprint.BuildPtr points to the given run. |
String |
toString() |
public BuildPtr(String name, int number)
public BuildPtr(Run run)
@Exported @NonNull public String getName()
the full name of the job
.
Such job could be since then removed, so there might not be a corresponding Job
.@WithBridgeMethods(value=AbstractProject.class, castRequired=true) public Job<?,?> getJob()
Job
that this pointer points to,
or null if such a job no longer exists.@Exported @NonNull public int getNumber()
Such Run
could be since then discarded.
public Run getRun()
Job
that this pointer points to,
or null if such a job no longer exists.public boolean is(Run r)
Fingerprint.BuildPtr
points to the given run.public boolean is(Job job)
Fingerprint.BuildPtr
points to the given job.public boolean belongsTo(Job job)
Fingerprint.BuildPtr
points to the given job
or one of its subordinates.
This is useful to check if an artifact in MavenModule belongs to MavenModuleSet.
Copyright © 2004–2021. All rights reserved.