|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.Actionable
hudson.model.AbstractItem
hudson.model.Job<P,R>
hudson.model.AbstractProject<P,B>
hudson.model.Project<P,B>
public abstract class Project<P extends Project<P,B>,B extends Build<P,B>>
Buildable software project.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class hudson.model.AbstractProject |
---|
AbstractProject.AbstractProjectDescriptor, AbstractProject.BecauseOfBuildInProgress, AbstractProject.BecauseOfDownstreamBuildInProgress, AbstractProject.BecauseOfUpstreamBuildInProgress |
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu |
---|
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.MenuItem |
Field Summary |
---|
Fields inherited from class hudson.model.AbstractProject |
---|
ABORT, blockBuildWhenDownstreamBuilding, blockBuildWhenUpstreamBuilding, BUILD_NOW_TEXT, builds, disabled, transientActions, triggers |
Fields inherited from class hudson.model.Job |
---|
HISTORY_ADAPTER, nextBuildNumber, properties |
Fields inherited from class hudson.model.AbstractItem |
---|
description, displayName, name, PRONOUN |
Fields inherited from interface hudson.model.Item |
---|
BUILD, CANCEL, CONFIGURE, CREATE, DELETE, DISCOVER, EXTENDED_READ, PERMISSIONS, READ, WIPEOUT, WORKSPACE |
Constructor Summary | |
---|---|
Project(ItemGroup parent,
String name)
Creates a new project. |
Method Summary | |
---|---|
void |
addPublisher(Publisher buildStep)
Deprecated. as of 1.290 Use getPublishersList().add(x) |
AbstractProject<?,?> |
asProject()
SCMedItem needs to be an instance of
AbstractProject . |
protected void |
buildDependencyGraph(DependencyGraph graph)
Builds the dependency graph. |
protected List<Action> |
createTransientActions()
|
List<Builder> |
getBuilders()
|
DescribableList<Builder,Descriptor<Builder>> |
getBuildersList()
|
Map<Descriptor<BuildWrapper>,BuildWrapper> |
getBuildWrappers()
|
DescribableList<BuildWrapper,Descriptor<BuildWrapper>> |
getBuildWrappersList()
BuildWrapper s associated with this AbstractProject . |
Publisher |
getPublisher(Descriptor<Publisher> descriptor)
|
Map<Descriptor<Publisher>,Publisher> |
getPublishers()
Deprecated. as of 1.463 We will be soon removing the restriction that only one instance of publisher is allowed per type. Use getPublishersList() instead. |
DescribableList<Publisher,Descriptor<Publisher>> |
getPublishersList()
Returns the live list of all Publisher s configured for this project. |
protected Set<ResourceActivity> |
getResourceActivities()
Set of child resource activities of the build of this project (override in child projects). |
Maven.MavenInstallation |
inferMavenInstallation()
Gets the Maven.MavenInstallation associated with the project. |
boolean |
isFingerprintConfigured()
True if the builds of this project produces Fingerprint records. |
void |
onLoad(ItemGroup<? extends Item> parent,
String name)
Called right after when a Item is loaded from disk. |
void |
removePublisher(Descriptor<Publisher> descriptor)
Deprecated. as of 1.290 Use getPublishersList().remove(x) |
protected void |
submit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Derived class can override this to perform additional config submission work. |
Methods inherited from class hudson.model.Actionable |
---|
addAction, doContextMenu, getAction, getAction, getActions |
Methods inherited from class hudson.model.AbstractModelObject |
---|
getSearch, getSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface hudson.model.SCMedItem |
---|
getScm, poll, pollSCMChanges |
Methods inherited from interface hudson.model.BuildableItem |
---|
scheduleBuild, scheduleBuild, scheduleBuild, scheduleBuild |
Methods inherited from interface hudson.model.Item |
---|
delete, getAbsoluteUrl, getAllJobs, getDisplayName, getFullDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrl, onCopiedFrom, onCreatedFromScratch |
Methods inherited from interface hudson.model.PersistenceRoot |
---|
getRootDir |
Methods inherited from interface hudson.search.SearchableModelObject |
---|
getSearch |
Methods inherited from interface hudson.search.SearchItem |
---|
getSearchIndex, getSearchName, getSearchUrl |
Methods inherited from interface hudson.security.AccessControlled |
---|
checkPermission, getACL, hasPermission |
Methods inherited from interface hudson.model.Queue.Task |
---|
checkAbortPermission, getCauseOfBlockage, getFullDisplayName, getName, getSubTasks, getUrl, getWhyBlocked, hasAbortPermission, isBuildBlocked, isConcurrentBuild |
Methods inherited from interface hudson.model.queue.SubTask |
---|
createExecutable, getAssignedLabel, getEstimatedDuration, getLastBuiltOn, getOwnerTask, getSameNodeConstraint |
Methods inherited from interface hudson.model.ResourceActivity |
---|
getDisplayName, getResourceList |
Constructor Detail |
---|
public Project(ItemGroup parent, String name)
Method Detail |
---|
public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException
AbstractItem
Item
is loaded from disk.
This is an opporunity to do a post load processing.
onLoad
in interface Item
onLoad
in class AbstractProject<P extends Project<P,B>,B extends Build<P,B>>
name
- Name of the directory (not a path --- just the name portion) from
which the configuration was loaded. This usually becomes the
name
of this item.
IOException
public AbstractProject<?,?> asProject()
SCMedItem
SCMedItem
needs to be an instance of
AbstractProject
.
This method must be always implemented as (AbstractProject)this
, but
defining this method emphasizes the fact that this cast must be doable.
asProject
in interface BuildableItemWithBuildWrappers
asProject
in interface SCMedItem
public List<Builder> getBuilders()
public Map<Descriptor<Publisher>,Publisher> getPublishers()
getPublishersList()
instead.
public DescribableList<Builder,Descriptor<Builder>> getBuildersList()
public DescribableList<Publisher,Descriptor<Publisher>> getPublishersList()
AbstractProject
Publisher
s configured for this project.
This method couldn't be called getPublishers() because existing methods in sub-classes return different inconsistent types.
getPublishersList
in class AbstractProject<P extends Project<P,B>,B extends Build<P,B>>
public Map<Descriptor<BuildWrapper>,BuildWrapper> getBuildWrappers()
public DescribableList<BuildWrapper,Descriptor<BuildWrapper>> getBuildWrappersList()
BuildableItemWithBuildWrappers
BuildWrapper
s associated with this AbstractProject
.
getBuildWrappersList
in interface BuildableItemWithBuildWrappers
protected Set<ResourceActivity> getResourceActivities()
AbstractProject
getResourceActivities
in class AbstractProject<P extends Project<P,B>,B extends Build<P,B>>
public void addPublisher(Publisher buildStep) throws IOException
getPublishersList().add(x)
BuildStep
to this Project
and saves the configuration.
IOException
public void removePublisher(Descriptor<Publisher> descriptor) throws IOException
getPublishersList().remove(x)
IOException
public Publisher getPublisher(Descriptor<Publisher> descriptor)
protected void buildDependencyGraph(DependencyGraph graph)
AbstractProject
buildDependencyGraph
in class AbstractProject<P extends Project<P,B>,B extends Build<P,B>>
DependencyGraph
public boolean isFingerprintConfigured()
AbstractProject
Fingerprint
records.
isFingerprintConfigured
in class AbstractProject<P extends Project<P,B>,B extends Build<P,B>>
public Maven.MavenInstallation inferMavenInstallation()
Maven.ProjectWithMaven
Maven.MavenInstallation
associated with the project.
Can be null.
If the Maven installation can not be uniquely determined, it's often better to return just one of them, rather than returning null, since this method is currently ultimately only used to decide where to parse conf/settings.xml from.
inferMavenInstallation
in interface Maven.ProjectWithMaven
protected void submit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException, Descriptor.FormException
Job
submit
in class AbstractProject<P extends Project<P,B>,B extends Build<P,B>>
IOException
javax.servlet.ServletException
Descriptor.FormException
protected List<Action> createTransientActions()
createTransientActions
in class AbstractProject<P extends Project<P,B>,B extends Build<P,B>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |