|
||||||||||
| 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,R>
hudson.maven.AbstractMavenProject<MavenModule,MavenBuild>
hudson.maven.MavenModule
public class MavenModule
Job that builds projects based on Maven2.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class hudson.maven.AbstractMavenProject |
|---|
AbstractMavenProject.MavenModuleDependency |
| 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, name, PRONOUN |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Fields inherited from interface hudson.model.Item |
|---|
BUILD, CANCEL, CONFIGURE, CREATE, DELETE, DISCOVER, EXTENDED_READ, PERMISSIONS, READ, WIPEOUT, WORKSPACE |
| Method Summary | |
|---|---|
protected void |
addTransientActionsFromBuild(MavenBuild build,
List<Action> collection,
Set<Class> added)
|
ModuleDependency |
asDependency()
Gets groupId+artifactId+version as ModuleDependency. |
protected void |
buildDependencyGraph(DependencyGraph graph)
Builds the dependency graph. |
protected List<MavenReporter> |
createReporters()
Creates a list of MavenReporters to be used for a build of this project. |
protected void |
doSetName(String name)
Just update AbstractItem.name without performing the rename operation,
which would involve copying files and etc. |
protected Collection<MavenModule> |
getAllMavenModules()
Returns all Maven modules in this Jenkins instance. |
Label |
getAssignedLabel()
MavenModule uses the workspace of the MavenModuleSet,
so it always needs to be built on the same slave as the parent. |
protected Class<MavenBuild> |
getBuildClass()
Determines Class<R>. |
List<MavenModule> |
getChildren()
Gets all the child modules (that are listed in the <module> element in our POM.) |
String |
getDisplayName()
Gets the human readable short name of this item. |
String |
getGoals()
Gets the list of goals to execute for this module. |
JDK |
getJDK()
Gets the JDK that this project is configured with, or null. |
LogRotator |
getLogRotator()
MavenModule follows the same log rotation schedule as its parent. |
ModuleName |
getModuleName()
|
MavenModuleSet |
getParent()
This bridge method is to maintain binary compatibility with Item.getParent(). |
String |
getPronoun()
Get the term used in the UI to represent this kind of AbstractProject. |
DescribableList<Publisher,Descriptor<Publisher>> |
getPublishersList()
Returns the live list of all Publishers configured for this project. |
String |
getRelativePath()
Relative path to this module's root directory from the workspace of a MavenModuleSet. |
DescribableList<MavenReporter,Descriptor<MavenReporter>> |
getReporters()
List of active MavenReporters configured for this module. |
String |
getShortUrl()
Returns the URL of this item relative to the parent ItemGroup. |
List<MavenModule> |
getSubsidiaries()
Computes the list of MavenModules that are 'under' this POM filesystem-wise. |
String |
getUserConfiguredGoals()
Gets the list of goals specified by the user, without taking inheritance and POM default goals into account. |
String |
getVersion()
Gets the version number in Maven POM as of the last build. |
Resource |
getWorkspaceResource()
Deprecated. as of 1.319 in AbstractProject. |
Maven.MavenInstallation |
inferMavenInstallation()
Gets the Maven.MavenInstallation associated with the project. |
boolean |
isBuildable()
Returns true if we should display "build now" icon |
boolean |
isFingerprintConfigured()
True if the builds of this project produces Fingerprint records. |
boolean |
isNameEditable()
Returns whether the name of this job can be changed by user. |
boolean |
isSameModule(hudson.maven.PomInfo pom)
Returns if the given POM likely describes the same module with the same dependencies. |
protected MavenBuild |
newBuild()
Creates a new build of this project for immediate execution. |
void |
onLoad(ItemGroup<? extends Item> parent,
String name)
Called right after when a Item is loaded from disk. |
protected void |
performDelete()
Does the real job of deleting the item. |
void |
setLogRotator(LogRotator logRotator)
Deprecated. Not allowed to configure log rotation per module. |
protected void |
submit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Derived class can override this to perform additional config submission work. |
boolean |
supportsLogRotator()
True if this instance supports log rotation configuration. |
String |
toString()
for debug purpose |
protected void |
updateTransientActions()
effectively deprecated. |
| Methods inherited from class hudson.maven.AbstractMavenProject |
|---|
createTransientActions |
| 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.Saveable |
|---|
save |
| Methods inherited from interface hudson.model.Item |
|---|
delete, getAbsoluteUrl, getAllJobs, getFullDisplayName, getFullName, getName, getRelativeNameFrom, getRelativeNameFrom, getUrl, onCopiedFrom |
| 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 |
|---|
getFullDisplayName, getName, getUrl |
| Methods inherited from interface hudson.model.queue.SubTask |
|---|
getEstimatedDuration |
| Method Detail |
|---|
public LogRotator getLogRotator()
MavenModule follows the same log rotation schedule as its parent.
getLogRotator in class Job<MavenModule,MavenBuild>public void setLogRotator(LogRotator logRotator)
setLogRotator in class Job<MavenModule,MavenBuild>public boolean supportsLogRotator()
Job
supportsLogRotator in class Job<MavenModule,MavenBuild>public boolean isBuildable()
Job
isBuildable in class AbstractProject<MavenModule,MavenBuild>public List<MavenModule> getSubsidiaries()
MavenModules that are 'under' this POM filesystem-wise. The list doens't include
this module itself.
Note that this doesn't necessary has anything to do with the module inheritance structure or parent/child relationship of the POM.
public boolean isSameModule(hudson.maven.PomInfo pom)
protected void doSetName(String name)
AbstractItemAbstractItem.name without performing the rename operation,
which would involve copying files and etc.
doSetName in class AbstractItem
public void onLoad(ItemGroup<? extends Item> parent,
String name)
throws IOException
AbstractItemItem is loaded from disk.
This is an opporunity to do a post load processing.
onLoad in interface ItemonLoad in class AbstractProject<MavenModule,MavenBuild>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.
IOExceptionpublic String getRelativePath()
MavenModuleSet.
The path separator is normalized to '/'.
public String getVersion()
public String getGoals()
public String getUserConfiguredGoals()
This is only used to present the UI screen, and in
all the other cases getGoals() should be used.
public DescribableList<Publisher,Descriptor<Publisher>> getPublishersList()
AbstractProjectPublishers 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<MavenModule,MavenBuild>public JDK getJDK()
AbstractProject
getJDK in class AbstractProject<MavenModule,MavenBuild>protected Class<MavenBuild> getBuildClass()
AbstractProject
getBuildClass in class AbstractProject<MavenModule,MavenBuild>
protected MavenBuild newBuild()
throws IOException
AbstractProject
newBuild in class AbstractProject<MavenModule,MavenBuild>IOExceptionpublic ModuleName getModuleName()
public ModuleDependency asDependency()
ModuleDependency.
public String getShortUrl()
ItemItemGroup.
getShortUrl in interface ItemgetShortUrl in class AbstractItemfor how to implement this.@Exported(visibility=2) public String getDisplayName()
ItemThis method should try to return a short concise human readable string that describes this item. The string need not be unique.
The returned string should not include the display names
of ancestor items.
getDisplayName in interface ItemgetDisplayName in interface ModelObjectgetDisplayName in interface ResourceActivitygetDisplayName in class AbstractItempublic String getPronoun()
AbstractProjectAbstractProject.
Must start with a capital letter.
getPronoun in class AbstractProject<MavenModule,MavenBuild>public boolean isNameEditable()
Job
isNameEditable in class Job<MavenModule,MavenBuild>public MavenModuleSet getParent()
AbstractItemItem.getParent().
getParent in interface ItemgetParent in class AbstractItempublic List<MavenModule> getChildren()
This method returns null if this information is not recorded. This happens for compatibility reason.
public Label getAssignedLabel()
MavenModule uses the workspace of the MavenModuleSet,
so it always needs to be built on the same slave as the parent.
getAssignedLabel in interface SubTaskgetAssignedLabel in class AbstractProject<MavenModule,MavenBuild>public Resource getWorkspaceResource()
AbstractProject.
MavenModule is a part of the parent's workspace.
That is, builds are incompatible with any MavenModule
builds, whereas MavenModule builds are compatible with each other.
getWorkspaceResource in class AbstractProject<MavenModule,MavenBuild>public boolean isFingerprintConfigured()
AbstractProjectFingerprint records.
isFingerprintConfigured in class AbstractProject<MavenModule,MavenBuild>protected void updateTransientActions()
AbstractProject
Override AbstractProject.createTransientActions() instead.
updateTransientActions in class AbstractProject<MavenModule,MavenBuild>protected void buildDependencyGraph(DependencyGraph graph)
AbstractProject
buildDependencyGraph in class AbstractProject<MavenModule,MavenBuild>DependencyGraphprotected Collection<MavenModule> getAllMavenModules()
protected void addTransientActionsFromBuild(MavenBuild build,
List<Action> collection,
Set<Class> added)
addTransientActionsFromBuild in class AbstractMavenProject<MavenModule,MavenBuild>collection - Add the transient actions to this collection.public Maven.MavenInstallation inferMavenInstallation()
Maven.ProjectWithMavenMaven.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.ProjectWithMavenpublic DescribableList<MavenReporter,Descriptor<MavenReporter>> getReporters()
MavenReporters configured for this module.
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<MavenModule,MavenBuild>IOException
javax.servlet.ServletException
Descriptor.FormException
protected void performDelete()
throws IOException,
InterruptedException
AbstractItem
performDelete in class AbstractProject<MavenModule,MavenBuild>IOException
InterruptedExceptionprotected List<MavenReporter> createReporters()
MavenReporters to be used for a build of this project.
public String toString()
toString in class AbstractItem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||