public class MavenModule extends AbstractMavenProject<MavenModule,MavenBuild> implements hudson.model.Saveable
Job that builds projects based on Maven2.AbstractMavenProject.MavenModuleDependencyhudson.model.AbstractProject.AbstractProjectDescriptor, hudson.model.AbstractProject.BecauseOfBuildInProgress, hudson.model.AbstractProject.BecauseOfDownstreamBuildInProgress, hudson.model.AbstractProject.BecauseOfUpstreamBuildInProgress, hudson.model.AbstractProject.LabelValidatorABORT, blockBuildWhenDownstreamBuilding, blockBuildWhenUpstreamBuilding, BUILD_NOW_TEXT, builds, disabled, transientActions, triggers| Modifier and Type | Method and Description |
|---|---|
protected void |
addTransientActionsFromBuild(MavenBuild build,
List<hudson.model.Action> collection,
Set<Class> added) |
ModuleDependency |
asDependency()
Gets groupId+artifactId+version as
ModuleDependency. |
protected void |
buildDependencyGraph(hudson.model.DependencyGraph graph) |
protected List<MavenReporter> |
createReporters()
Creates a list of
MavenReporters to be used for a build of this project. |
protected void |
doSetName(String name) |
protected Collection<MavenModule> |
getAllMavenModules()
Returns all Maven modules in this Jenkins instance.
|
String |
getArtifactId()
Short-cut for
getModuleName().artifactId |
hudson.model.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() |
List<MavenModule> |
getChildren()
Gets all the child modules (that are listed in the
<module> element in our POM). |
Set<ModuleDependency> |
getDependencies()
defensive copy of
ModuleDependency |
String |
getDisplayName() |
String |
getGoals()
Gets the list of goals to execute for this module.
|
String |
getGroupId()
Short-cut for
getModuleName().groupId |
hudson.model.JDK |
getJDK() |
hudson.tasks.LogRotator |
getLogRotator()
MavenModule follows the same log rotation schedule as its parent. |
ModuleName |
getModuleName() |
String |
getPackaging()
Packaging type of the module.
|
MavenModuleSet |
getParent() |
String |
getPronoun() |
hudson.util.DescribableList<hudson.tasks.Publisher,hudson.model.Descriptor<hudson.tasks.Publisher>> |
getPublishersList() |
String |
getRelativePath()
Relative path to this module's root directory
from the workspace of a
MavenModuleSet. |
hudson.util.DescribableList<MavenReporter,hudson.model.Descriptor<MavenReporter>> |
getReporters()
List of active
MavenReporters configured for this module. |
String |
getShortUrl() |
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.
|
hudson.model.Resource |
getWorkspaceResource()
Deprecated.
as of 1.319 in
AbstractProject. |
hudson.tasks.Maven.MavenInstallation |
inferMavenInstallation() |
boolean |
isBuildable() |
boolean |
isFingerprintConfigured() |
boolean |
isNameEditable() |
boolean |
isSameModule(hudson.maven.PomInfo pom)
Returns if the given POM likely describes the same module with the same dependencies.
|
protected MavenBuild |
newBuild() |
void |
onLoad(hudson.model.ItemGroup<? extends hudson.model.Item> parent,
String name) |
protected void |
performDelete() |
void |
setLogRotator(hudson.tasks.LogRotator logRotator)
Deprecated.
Not allowed to configure log rotation per module.
|
protected void |
submit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
boolean |
supportsLogRotator() |
String |
toString()
for debug purpose
|
protected void |
updateTransientActions() |
createTransientActions_getRuns, addProperty, addToList, addTrigger, blockBuildWhenDownstreamBuilding, blockBuildWhenUpstreamBuilding, buildDescribable, buildDescribable, checkAbortPermission, checkout, createExecutable, createHistoryWidget, disable, doBuild, doBuild, doBuildWithParameters, doBuildWithParameters, doCancelQueue, doCheckRetryCount, doConfigSubmit, doDisable, doDoWipeOutWorkspace, doEnable, doPolling, doRssChangelog, doWs, enable, findNearest, findNearest, getActions, getAssignedLabelString, getAuthToken, getBuild, getBuildByNumber, getBuildingDownstream, getBuildingUpstream, getBuildNowText, getBuildTriggerUpstreamProjects, getCauseOfBlockage, getCustomWorkspace, getDefaultAuthentication, getDefaultAuthentication, getDelay, getDownstreamProjects, getEnvironment, getFirstBuild, getHasCustomQuietPeriod, getIconColor, getLastBuild, getLastBuiltOn, getLazyBuildMixIn, getModuleRoot, getModuleRoots, getNearestBuild, getNearestOldBuild, getOwnerTask, getProminentActions, getQueueItem, getQuietPeriod, getRelationship, getRelevantLabels, getResourceActivities, getResourceList, getRootProject, getSameNodeConstraint, getScm, getScmCheckoutRetryCount, getScmCheckoutStrategy, getSomeBuildWithWorkspace, getSomeWorkspace, getSubTasks, getTransitiveDownstreamProjects, getTransitiveUpstreamProjects, getTrigger, getTriggers, getUpstreamProjects, getWhyBlocked, getWorkspace, hasAbortPermission, hasCustomScmCheckoutRetryCount, hasParticipant, isBuildBlocked, isConcurrentBuild, isConfigurable, isDisabled, isInQueue, isParameterized, loadBuild, makeDisabled, makeSearchIndex, onCreatedFromScratch, poll, pollSCMChanges, removeFromList, removeRun, removeTrigger, resolveForCLI, save, scheduleBuild, scheduleBuild, scheduleBuild, scheduleBuild, scheduleBuild, scheduleBuild2, scheduleBuild2, scheduleBuild2, scheduleBuild2, schedulePolling, setAssignedLabel, setAssignedNode, setBlockBuildWhenDownstreamBuilding, setBlockBuildWhenUpstreamBuilding, setConcurrentBuild, setCustomWorkspace, setJDK, setQuietPeriod, setScm, setScmCheckoutStrategy, supportsMakeDisabled, triggersassignBuildNumber, delete, doBuildStatus, doChildrenContextMenu, doDescription, doDoRename, doRssAll, doRssFailed, getACL, getAllJobs, getAllProperties, getBuildDir, getBuildDiscarder, getBuildForCLI, getBuildHealth, getBuildHealthReports, getBuilds, getBuilds, getBuildsAsMap, getBuildsByTimestamp, getBuildStatusIconClassName, getBuildStatusUrl, getBuildTimeGraph, getCharacteristicEnvVars, getDynamic, getEstimatedDuration, getEstimatedDurationCandidates, getLastBuildsOverThreshold, getLastCompletedBuild, getLastFailedBuild, getLastStableBuild, getLastSuccessfulBuild, getLastUnstableBuild, getLastUnsuccessfulBuild, getNewBuilds, getNextBuildNumber, getOverrides, getPermalinks, getProperties, getProperty, getProperty, getTimeline, getWidgets, isBuilding, isHoldOffBuildUntilSave, isKeepDependencies, isLogUpdated, logRotate, movedTo, onCopiedFrom, removeProperty, removeProperty, renameTo, saveNextBuildNumber, setBuildDiscarder, updateNextBuildNumbercheckPermission, delete, doConfigDotXml, doDoDelete, doReload, doSubmitDescription, getAbsoluteUrl, getApi, getConfigFile, getDescription, getDescriptorByName, getDisplayNameOrNull, getFullDisplayName, getFullName, getName, getRelativeDisplayNameFrom, getRelativeNameFrom, getRelativeNameFrom, getRelativeNameFromGroup, getRootDir, getSearchName, getSearchUrl, getUrl, hasPermission, setDescription, setDisplayName, setDisplayNameOrNull, updateByXml, updateByXmladdAction, doContextMenu, getAction, getAction, getActions, getAllActions, replaceActiongetSearch, getSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdelete, getAbsoluteUrl, getAllJobs, getFullDisplayName, getFullName, getName, getRelativeNameFrom, getRelativeNameFrom, getUrl, onCopiedFrompublic hudson.tasks.LogRotator getLogRotator()
MavenModule follows the same log rotation schedule as its parent.getLogRotator in class hudson.model.Job<MavenModule,MavenBuild>public void setLogRotator(hudson.tasks.LogRotator logRotator)
setLogRotator in class hudson.model.Job<MavenModule,MavenBuild>public boolean supportsLogRotator()
supportsLogRotator in class hudson.model.Job<MavenModule,MavenBuild>public boolean isBuildable()
isBuildable in class hudson.model.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)
doSetName in class hudson.model.AbstractItempublic void onLoad(hudson.model.ItemGroup<? extends hudson.model.Item> parent,
String name)
throws IOException
onLoad in interface hudson.model.ItemonLoad in class hudson.model.AbstractProject<MavenModule,MavenBuild>IOExceptionpublic String getRelativePath()
MavenModuleSet.
The path separator is normalized to '/'.public String getVersion()
public String getPackaging()
public String getGroupId()
getModuleName().groupIdpublic String getArtifactId()
getModuleName().artifactIdpublic 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 hudson.util.DescribableList<hudson.tasks.Publisher,hudson.model.Descriptor<hudson.tasks.Publisher>> getPublishersList()
getPublishersList in class hudson.model.AbstractProject<MavenModule,MavenBuild>public hudson.model.JDK getJDK()
getJDK in class hudson.model.AbstractProject<MavenModule,MavenBuild>protected Class<MavenBuild> getBuildClass()
getBuildClass in class hudson.model.AbstractProject<MavenModule,MavenBuild>protected MavenBuild newBuild() throws IOException
newBuild in class hudson.model.AbstractProject<MavenModule,MavenBuild>IOExceptionpublic ModuleName getModuleName()
public ModuleDependency asDependency()
ModuleDependency.public String getShortUrl()
getShortUrl in interface hudson.model.ItemgetShortUrl in class hudson.model.AbstractItem@Exported(visibility=2) public String getDisplayName()
getDisplayName in interface hudson.model.ItemgetDisplayName in interface hudson.model.ModelObjectgetDisplayName in interface hudson.model.ResourceActivitygetDisplayName in class hudson.model.AbstractItempublic String getPronoun()
getPronoun in class hudson.model.AbstractProject<MavenModule,MavenBuild>public boolean isNameEditable()
isNameEditable in class hudson.model.Job<MavenModule,MavenBuild>public MavenModuleSet getParent()
getParent in interface hudson.model.ItemgetParent in class hudson.model.AbstractItempublic List<MavenModule> getChildren()
<module> element in our POM).
This method returns null if this information is not recorded. This happens for compatibility reason.
public hudson.model.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 hudson.model.queue.SubTaskgetAssignedLabel in class hudson.model.AbstractProject<MavenModule,MavenBuild>public hudson.model.Resource getWorkspaceResource()
AbstractProject.MavenModule is a part of the parent's workspace.
That is, MavenModuleSet builds are incompatible with any MavenModule
builds, whereas MavenModule builds are compatible with each other.
getWorkspaceResource in class hudson.model.AbstractProject<MavenModule,MavenBuild>public boolean isFingerprintConfigured()
isFingerprintConfigured in class hudson.model.AbstractProject<MavenModule,MavenBuild>protected void updateTransientActions()
updateTransientActions in class hudson.model.AbstractProject<MavenModule,MavenBuild>protected void buildDependencyGraph(hudson.model.DependencyGraph graph)
buildDependencyGraph in class hudson.model.AbstractProject<MavenModule,MavenBuild>protected Collection<MavenModule> getAllMavenModules()
protected void addTransientActionsFromBuild(MavenBuild build, List<hudson.model.Action> collection, Set<Class> added)
addTransientActionsFromBuild in class AbstractMavenProject<MavenModule,MavenBuild>collection - Add the transient actions to this collection.public hudson.tasks.Maven.MavenInstallation inferMavenInstallation()
inferMavenInstallation in interface hudson.tasks.Maven.ProjectWithMavenpublic hudson.util.DescribableList<MavenReporter,hudson.model.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,
hudson.model.Descriptor.FormException
submit in class hudson.model.AbstractProject<MavenModule,MavenBuild>IOExceptionjavax.servlet.ServletExceptionhudson.model.Descriptor.FormExceptionprotected void performDelete()
throws IOException,
InterruptedException
performDelete in class hudson.model.AbstractProject<MavenModule,MavenBuild>IOExceptionInterruptedExceptionprotected List<MavenReporter> createReporters()
MavenReporters to be used for a build of this project.public Set<ModuleDependency> getDependencies()
ModuleDependencypublic String toString()
toString in class hudson.model.AbstractItemCopyright © 2016–2017. All rights reserved.