public enum LookupStrategy extends java.lang.Enum<LookupStrategy>
| Enum Constant and Description |
|---|
JENKINS_ROOT
Using this naming strategy jobs with relative path names are absolute names.
|
SEED_JOB
Using this naming strategy jobs with relative path names are created relative
to the seed job's parent folder.
|
| Modifier and Type | Method and Description |
|---|---|
protected hudson.model.ItemGroup |
getContext(hudson.model.Item seedJob)
Get the context in which new items should be created for the given seed job.
|
java.lang.String |
getDisplayName() |
<T extends hudson.model.Item> |
getItem(hudson.model.Item seedJob,
java.lang.String path,
java.lang.Class<T> type)
Get an item by its path name in the context of a seed job.
|
hudson.model.ItemGroup |
getParent(hudson.model.Item seedJob,
java.lang.String path)
Get the parent
ItemGroup of the item addressed by the given path. |
static LookupStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LookupStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LookupStrategy JENKINS_ROOT
public static final LookupStrategy SEED_JOB
public static LookupStrategy[] values()
for (LookupStrategy c : LookupStrategy.values()) System.out.println(c);
public static LookupStrategy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic <T extends hudson.model.Item> T getItem(hudson.model.Item seedJob,
java.lang.String path,
java.lang.Class<T> type)
T - the type of the itemseedJob - the seed jobpath - the path nametype - the type of the itemprotected hudson.model.ItemGroup getContext(hudson.model.Item seedJob)
seedJob - a seed jobpublic hudson.model.ItemGroup getParent(hudson.model.Item seedJob,
java.lang.String path)
ItemGroup of the item addressed by the given path.seedJob - the seed jobpath - path to the item for which the parent should be looked upItemGroup of the item with the given pathpublic java.lang.String getDisplayName()