Package | Description |
---|---|
hudson | |
hudson.cli |
Server-side CLI commands for Hudson.
|
hudson.cli.handlers |
OptionHandler implementations for Hudson. |
hudson.model |
Core object model that are bound to URLs via stapler, rooted at
Hudson . |
hudson.views | |
jenkins.model | |
jenkins.slaves |
Modifier and Type | Method and Description |
---|---|
static List<TopLevelItem> |
Functions.getAllTopLevelItems(ItemGroup root)
Gets all the
TopLevelItem s recursively in the ItemGroup tree. |
Modifier and Type | Field and Description |
---|---|
TopLevelItem |
CopyJobCommand.src |
Modifier and Type | Method and Description |
---|---|
protected Class<TopLevelItem> |
TopLevelItemOptionHandler.type() |
Constructor and Description |
---|
TopLevelItemOptionHandler(org.kohsuke.args4j.CmdLineParser parser,
org.kohsuke.args4j.OptionDef option,
org.kohsuke.args4j.spi.Setter<TopLevelItem> setter) |
Modifier and Type | Class and Description |
---|---|
class |
FreeStyleProject
Free-style software project.
|
Modifier and Type | Method and Description |
---|---|
<T extends TopLevelItem> |
ItemGroupMixIn.copy(T src,
String name)
Copies an existing
TopLevelItem to a new name. |
static <I extends AbstractItem & TopLevelItem> |
Items.move(I item,
DirectlyModifiableTopLevelItemGroup destination)
Moves an item between folders (or top level).
|
Modifier and Type | Method and Description |
---|---|
TopLevelItem |
ItemGroupMixIn.createProject(TopLevelItemDescriptor type,
String name,
boolean notify) |
TopLevelItem |
ItemGroupMixIn.createProjectFromXML(String name,
InputStream xml) |
TopLevelItem |
ItemGroupMixIn.createTopLevelItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Creates a
TopLevelItem for example from the submission of the /lib/hudson/newFromList/form tag
or throws an exception if it fails. |
TopLevelItem |
MyView.doCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
TopLevelItem |
View.getItem(String name)
Gets the
TopLevelItem of the given name. |
TopLevelItem |
ProxyView.getItem(String name) |
TopLevelItem |
Hudson.getJob(String name)
Deprecated.
Left only for the compatibility of URLs.
Should not be invoked for any other purpose.
|
TopLevelItem |
View.getJob(String name)
Alias for
View.getItem(String) . |
TopLevelItem |
Hudson.getJobCaseInsensitive(String name)
Deprecated.
Used only for mapping jobs to URL in a case-insensitive fashion.
|
abstract TopLevelItem |
TopLevelItemDescriptor.newInstance(ItemGroup parent,
String name)
Creates a new
TopLevelItem for the specified parent. |
TopLevelItem |
TopLevelItemDescriptor.newInstance(org.kohsuke.stapler.StaplerRequest req)
Deprecated.
since 2007-01-19.
This is not a valid operation for
Item s. |
TopLevelItem |
TopLevelItemDescriptor.newInstance(String name)
Deprecated.
as of 1.390
Use
TopLevelItemDescriptor.newInstance(ItemGroup, String) |
Modifier and Type | Method and Description |
---|---|
static DescriptorExtensionList<TopLevelItem,TopLevelItemDescriptor> |
Items.all()
Returns all the registered
TopLevelItemDescriptor s. |
Collection<TopLevelItem> |
View.getAllItems()
Gets all the items recursively contained in this collection in a read-only view.
|
default ItemGroup<? extends TopLevelItem> |
ViewGroup.getItemGroup()
Returns the
ItemGroup from which the views in this group should render items. |
Collection<TopLevelItem> |
AllView.getItems() |
abstract Collection<TopLevelItem> |
View.getItems()
Gets all the items in this collection in a read-only view.
|
List<TopLevelItem> |
ListView.getItems()
Returns a read-only view of all
Job s in this view. |
Collection<TopLevelItem> |
ProxyView.getItems() |
Collection<TopLevelItem> |
MyView.getItems() |
ItemGroup<? extends TopLevelItem> |
View.getOwnerItemGroup()
Deprecated.
call
ViewGroup.getItemGroup() directly |
Modifier and Type | Method and Description |
---|---|
void |
DirectlyModifiableView.add(TopLevelItem item)
Add item to this view.
|
protected abstract void |
ItemGroupMixIn.add(TopLevelItem item)
Adds a newly created item to the parent.
|
void |
ListView.add(TopLevelItem item)
Adds the given item to this view.
|
boolean |
AllView.contains(TopLevelItem item) |
abstract boolean |
View.contains(TopLevelItem item)
Checks if the job is in this collection.
|
boolean |
ListView.contains(TopLevelItem item) |
boolean |
ProxyView.contains(TopLevelItem item) |
boolean |
MyView.contains(TopLevelItem item) |
FilePath |
Slave.getWorkspaceFor(TopLevelItem item) |
abstract FilePath |
Node.getWorkspaceFor(TopLevelItem item)
Returns a "workspace" directory for the given
TopLevelItem . |
boolean |
ListView.jobNamesContains(TopLevelItem item) |
protected String |
ItemGroupMixIn.redirectAfterCreateItem(org.kohsuke.stapler.StaplerRequest req,
TopLevelItem result)
Computes the redirection target URL for the newly created
TopLevelItem . |
boolean |
DirectlyModifiableView.remove(TopLevelItem item)
Remove item from this view.
|
boolean |
ListView.remove(TopLevelItem item)
Removes given item from this view.
|
boolean |
TopLevelItemDescriptor.testInstance(TopLevelItem i)
Tests if the given instance belongs to this descriptor, in the sense
that this descriptor can produce items like the given one.
|
Constructor and Description |
---|
TopLevelItemDescriptor(Class<? extends TopLevelItem> clazz) |
Modifier and Type | Method and Description |
---|---|
List<TopLevelItem> |
StatusFilter.filter(List<TopLevelItem> added,
List<TopLevelItem> all,
View filteringView)
Choose which jobs to show for a view.
|
abstract List<TopLevelItem> |
ViewJobFilter.filter(List<TopLevelItem> added,
List<TopLevelItem> all,
View filteringView)
Choose which jobs to show for a view.
|
Modifier and Type | Method and Description |
---|---|
List<TopLevelItem> |
StatusFilter.filter(List<TopLevelItem> added,
List<TopLevelItem> all,
View filteringView)
Choose which jobs to show for a view.
|
List<TopLevelItem> |
StatusFilter.filter(List<TopLevelItem> added,
List<TopLevelItem> all,
View filteringView)
Choose which jobs to show for a view.
|
abstract List<TopLevelItem> |
ViewJobFilter.filter(List<TopLevelItem> added,
List<TopLevelItem> all,
View filteringView)
Choose which jobs to show for a view.
|
abstract List<TopLevelItem> |
ViewJobFilter.filter(List<TopLevelItem> added,
List<TopLevelItem> all,
View filteringView)
Choose which jobs to show for a view.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractTopLevelItem
Default base implementation of
TopLevelItem . |
Modifier and Type | Method and Description |
---|---|
<I extends TopLevelItem> |
DirectlyModifiableTopLevelItemGroup.add(I item,
String name)
Adds an item to this group.
|
<I extends TopLevelItem> |
Jenkins.add(I item,
String name) |
<T extends TopLevelItem> |
Jenkins.copy(T src,
String name) |
<T extends TopLevelItem> |
ModifiableTopLevelItemGroup.copy(T src,
String name)
Copies a job.
|
<T extends TopLevelItem> |
Jenkins.createProject(Class<T> type,
String name)
Creates a new job.
|
Modifier and Type | Method and Description |
---|---|
TopLevelItem |
Jenkins.createProject(TopLevelItemDescriptor type,
String name) |
TopLevelItem |
Jenkins.createProject(TopLevelItemDescriptor type,
String name,
boolean notify) |
TopLevelItem |
ModifiableTopLevelItemGroup.createProject(TopLevelItemDescriptor type,
String name,
boolean notify)
Creates a new job.
|
TopLevelItem |
Jenkins.createProjectFromXML(String name,
InputStream xml) |
TopLevelItem |
ModifiableTopLevelItemGroup.createProjectFromXML(String name,
InputStream xml)
Creates a new job from its configuration XML.
|
TopLevelItem |
Jenkins.doCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
TopLevelItem |
Jenkins.getItem(String name)
Gets the
Item inside this group that has a given name, or null if it does not exist. |
Modifier and Type | Method and Description |
---|---|
Map<String,TopLevelItem> |
Jenkins.getItemMap()
Returns the read-only view of all the
TopLevelItem s keyed by their names. |
List<TopLevelItem> |
Jenkins.getItems()
Gets just the immediate children of
Jenkins . |
List<TopLevelItem> |
Jenkins.getItems(Predicate<TopLevelItem> pred)
Gets just the immediate children of
Jenkins based on supplied predicate. |
Modifier and Type | Method and Description |
---|---|
boolean |
DirectlyModifiableTopLevelItemGroup.canAdd(TopLevelItem item)
Returns true if a particular item may be added to this group.
|
boolean |
Jenkins.canAdd(TopLevelItem item) |
File |
Jenkins.getRootDirFor(TopLevelItem child) |
FilePath |
Jenkins.getWorkspaceFor(TopLevelItem item) |
void |
Jenkins.onDeleted(TopLevelItem item)
Called in response to
AbstractItem.doDoDelete(StaplerRequest, StaplerResponse) |
void |
Jenkins.onRenamed(TopLevelItem job,
String oldName,
String newName)
Called by
Job.renameTo(String) to update relevant data structure. |
void |
Jenkins.putItem(TopLevelItem item)
Overwrites the existing item by new one.
|
void |
DirectlyModifiableTopLevelItemGroup.remove(TopLevelItem item)
Removes an item from this group.
|
void |
Jenkins.remove(TopLevelItem item) |
Modifier and Type | Method and Description |
---|---|
List<TopLevelItem> |
Jenkins.getItems(Predicate<TopLevelItem> pred)
Gets just the immediate children of
Jenkins based on supplied predicate. |
Modifier and Type | Method and Description |
---|---|
abstract FilePath |
WorkspaceLocator.locate(TopLevelItem item,
Node node)
Allows extensions to customize the workspace path.
|
Copyright © 2004–2022. All rights reserved.