Package hudson.model
Class PermalinkProjectAction.Permalink
- java.lang.Object
-
- hudson.model.PermalinkProjectAction.Permalink
-
- Direct Known Subclasses:
PeepholePermalink
- Enclosing interface:
- PermalinkProjectAction
public abstract static class PermalinkProjectAction.Permalink extends Object
Permalink as a strategy pattern.
-
-
Field Summary
Fields Modifier and Type Field Description static List<PermalinkProjectAction.Permalink>
BUILTIN
List ofPermalinkProjectAction.Permalink
s that are built into Jenkins.static PermalinkProjectAction.Permalink
LAST_BUILD
static PermalinkProjectAction.Permalink
LAST_COMPLETED_BUILD
static PermalinkProjectAction.Permalink
LAST_FAILED_BUILD
static PermalinkProjectAction.Permalink
LAST_STABLE_BUILD
static PermalinkProjectAction.Permalink
LAST_SUCCESSFUL_BUILD
static PermalinkProjectAction.Permalink
LAST_UNSTABLE_BUILD
static PermalinkProjectAction.Permalink
LAST_UNSUCCESSFUL_BUILD
-
Constructor Summary
Constructors Constructor Description Permalink()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract String
getDisplayName()
String to be displayed in the UI, such as "Last successful build".abstract String
getId()
ID that uniquely identifies this permalink.abstract Run<?,?>
resolve(Job<?,?> job)
Resolves the permalink to a build.
-
-
-
Field Detail
-
BUILTIN
public static final List<PermalinkProjectAction.Permalink> BUILTIN
List ofPermalinkProjectAction.Permalink
s that are built into Jenkins.
-
LAST_BUILD
public static final PermalinkProjectAction.Permalink LAST_BUILD
-
LAST_STABLE_BUILD
public static final PermalinkProjectAction.Permalink LAST_STABLE_BUILD
-
LAST_SUCCESSFUL_BUILD
public static final PermalinkProjectAction.Permalink LAST_SUCCESSFUL_BUILD
-
LAST_FAILED_BUILD
public static final PermalinkProjectAction.Permalink LAST_FAILED_BUILD
-
LAST_UNSTABLE_BUILD
public static final PermalinkProjectAction.Permalink LAST_UNSTABLE_BUILD
-
LAST_UNSUCCESSFUL_BUILD
public static final PermalinkProjectAction.Permalink LAST_UNSUCCESSFUL_BUILD
-
LAST_COMPLETED_BUILD
public static final PermalinkProjectAction.Permalink LAST_COMPLETED_BUILD
-
-
Method Detail
-
getDisplayName
public abstract String getDisplayName()
String to be displayed in the UI, such as "Last successful build". The convention is to upper case the first letter.
-
getId
public abstract String getId()
ID that uniquely identifies this permalink.The is also used as an URL token to represent the permalink. This becomes the part of the permanent URL.
The expected format is the camel case, such as "lastSuccessfulBuild".
-
-