Package hudson.maven
Class MavenModuleSet
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Actionable
-
- hudson.model.AbstractItem
-
- hudson.model.Job<P,R>
-
- hudson.model.AbstractProject<P,R>
-
- hudson.maven.AbstractMavenProject<MavenModuleSet,MavenModuleSetBuild>
-
- hudson.maven.MavenModuleSet
-
- All Implemented Interfaces:
ExtensionPoint
,BuildableItem
,BuildableItemWithBuildWrappers
,Describable<TopLevelItem>
,DescriptorByNameOwner
,Item
,ItemGroup<MavenModule>
,ModelObject
,PersistenceRoot
,SubTask
,Queue.Task
,ResourceActivity
,Saveable
,SCMedItem
,TopLevelItem
,SearchableModelObject
,SearchItem
,AccessControlled
,Maven.ProjectWithMaven
,LazyBuildMixIn.LazyLoadingJob<MavenModuleSet,MavenModuleSetBuild>
,ModelObjectWithChildren
,ModelObjectWithContextMenu
,ParameterizedJobMixIn.ParameterizedJob<MavenModuleSet,MavenModuleSetBuild>
,TriggeredItem
,OnMaster
,org.kohsuke.stapler.HttpDeletable
,org.kohsuke.stapler.StaplerOverridable
,org.kohsuke.stapler.StaplerProxy
public class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,MavenModuleSetBuild> implements TopLevelItem, ItemGroup<MavenModule>, SCMedItem, Saveable, BuildableItemWithBuildWrappers
Group ofMavenModule
s.This corresponds to the group of Maven POMs that constitute a single tree of projects. This group serves as the grouping of those related modules.
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MavenModuleSet.DescriptorImpl
-
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, AbstractProject.LabelValidator
-
Nested classes/interfaces inherited from class hudson.model.Job
Job.LastItemListener, Job.SubItemBuildsLocationImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType
-
-
Field Summary
Fields Modifier and Type Field Description static MavenModuleSet.DescriptorImpl
DESCRIPTOR
Descriptor is instantiated as a field purely for backward compatibility.protected String
globalSettingConfigPath
Deprecated.since 1.484 settings are provided byglobalSettings
-
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, runIdMigrator
-
Fields inherited from class hudson.model.AbstractItem
description, displayName, name, PRONOUN, SKIP_PERMISSION_CHECK, TASK_NOUN
-
-
Constructor Summary
Constructors Constructor Description MavenModuleSet(ItemGroup parent, String name)
MavenModuleSet(String name)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
addTransientActionsFromBuild(MavenModuleSetBuild build, List<Action> collection, Set<Class> added)
AbstractProject<?,?>
asProject()
int
assignBuildNumber()
To make it easy to grasp relationship among modules and the module set, we'll align the build numbers of all the modules.protected void
buildDependencyGraph(DependencyGraph graph)
Indenter<MavenModule>
createIndenter()
protected List<Action>
createTransientActions()
FormValidation
doCheckFileInWorkspace(String value)
Check the location of the POM, alternate settings file, etc - any file.ModelObjectWithContextMenu.ContextMenu
doChildrenContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
org.kohsuke.stapler.HttpResponse
doDoDeleteAllDisabledModules()
Delete all disabled modules.Collection<Job>
getAllJobs()
String
getAlternateSettings()
Deprecated.as of 1.481List<Queue.Item>
getApproximateQueueItemsQuickly()
Returns theMavenModule
s that are in the queue.boolean
getBlockTriggerWhenBuilding()
protected Class<MavenModuleSetBuild>
getBuildClass()
DescribableList<BuildWrapper,Descriptor<BuildWrapper>>
getBuildWrappers()
Deprecated.as of 1.335 UsegetBuildWrappersList()
to be consistent with other subtypes ofAbstractProject
.DescribableList<BuildWrapper,Descriptor<BuildWrapper>>
getBuildWrappersList()
MavenModuleSet.DescriptorImpl
getDescriptor()
List<MavenModule>
getDisabledModules(boolean disabled)
Possibly empty list of all disabled modules (if disabled==true) or all enabeld modules (if disabled==false)Object
getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
protected List<MavenModuleSetBuild>
getEstimatedDurationCandidates()
LocalRepositoryLocator
getExplicitLocalRepository()
Undefaulted locally configured value with taking inheritance from the global configuration into account.GlobalSettingsProvider
getGlobalSettings()
String
getGoals()
Gets the list of goals to execute.MavenModule
getItem(String name)
Collection<MavenModule>
getItems()
LocalRepositoryLocator
getLocalRepository()
Maven.MavenInstallation
getMaven()
Gets the Maven to invoke.String
getMavenOpts()
Possibly null, whitespace-separated (including TAB, NL, etc) VM options to be used to launch Maven process.Properties
getMavenProperties()
Gets the system properties explicitly set in the Maven command line (the "-D" option.)int
getMavenValidationLevel()
MavenModule
getModule(String name)
Collection<MavenModule>
getModules()
DescribableList<Builder,Descriptor<Builder>>
getPostbuilders()
Builders that are run after the main Maven execution.DescribableList<Builder,Descriptor<Builder>>
getPrebuilders()
Builders that are run before the main Maven execution.String
getProfiles()
If the list of configured goals contain the "-P" option, return the configured profiles.String
getPronoun()
DescribableList<Publisher,Descriptor<Publisher>>
getPublishers()
List of activePublisher
s.DescribableList<Publisher,Descriptor<Publisher>>
getPublishersList()
List<Queue.Item>
getQueueItems()
Returns theMavenModule
s that are in the queue.DescribableList<MavenReporter,Descriptor<MavenReporter>>
getReporters()
List of activeMavenReporter
s that should be applied to all module builds.protected Set<ResourceActivity>
getResourceActivities()
File
getRootDirFor(MavenModule child)
MavenModule
getRootModule()
String
getRootPOM()
Deprecated.for backward comp onlyString
getRootPOM(EnvVars env)
Gets the location of top-levelpom.xml
relative to the workspace root.Result
getRunPostStepsIfResult()
postbuilders
are run if the result is better or equal to this threshold.SettingsProvider
getSettings()
hudson.tasks.test.AbstractTestResultAction<?>
getTestResultAction()
String
getUrlChildPrefix()
String
getUserConfiguredGoals()
Gets the list of goals specified by the user, without taking inheritance and POM default goals into account.boolean
hasDisabledModule()
Returns true if there's any disabled module.boolean
ignoreUnsuccessfulUpstreams()
boolean
ignoreUpstremChanges()
Maven.MavenInstallation
inferMavenInstallation()
boolean
isAggregatorStyleBuild()
boolean
isArchivingDisabled()
boolean
isDisableTriggerDownstreamProjects()
boolean
isFingerprintConfigured()
boolean
isFingerprintingDisabled()
boolean
isIncrementalBuild()
boolean
isNonRecursive()
Check for "-N" or "--non-recursive" in the Maven goals/options.boolean
isPerModuleEmail()
Deprecated.boolean
isProcessPlugins()
boolean
isResolveDependencies()
boolean
isSiteArchivingDisabled()
void
logRotate()
protected SearchIndexBuilder
makeSearchIndex()
void
onDeleted(MavenModule item)
void
onLoad(ItemGroup<? extends Item> parent, String name)
void
onRenamed(MavenModule item, String oldName, String newName)
Object
readResolve()
boolean
runHeadless()
void
setAggregatorStyleBuild(boolean aggregatorStyleBuild)
void
setAlternateSettings(String alternateSettings)
Deprecated.as of 1.481void
setBlockTriggerWhenBuilding(boolean blockTriggerWhenBuilding)
void
setDisableTriggerDownstreamProjects(boolean disableTriggerDownstreamProjects)
void
setGlobalSettings(GlobalSettingsProvider globalSettings)
void
setGoals(String goals)
void
setIgnoreUnsuccessfulUpstreams(boolean ignoreUnsuccessfulUpstreams)
void
setIgnoreUpstremChanges(boolean ignoreUpstremChanges)
void
setIncrementalBuild(boolean incrementalBuild)
void
setIsArchivingDisabled(boolean archivingDisabled)
void
setIsFingerprintingDisabled(boolean fingerprintingDisabled)
void
setIsSiteArchivingDisabled(boolean siteArchivingDisabled)
void
setLocalRepository(LocalRepositoryLocator localRepository)
void
setMaven(String mavenName)
void
setMavenOpts(String mavenOpts)
Set mavenOpts.void
setProcessPlugins(boolean processPlugins)
void
setResolveDependencies(boolean resolveDependencies)
void
setRootPOM(String rootPOM)
void
setRunHeadless(boolean runHeadless)
void
setRunPostStepsIfResult(Result v)
void
setSettings(SettingsProvider settings)
void
setUsePrivateRepository(boolean usePrivateRepository)
Deprecated.as of 1.448.protected void
submit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
protected void
updateTransientActions()
boolean
usesPrivateRepository()
Deprecated.as of 1.448 UsegetLocalRepository()
-
Methods inherited from class hudson.maven.AbstractMavenProject
scheduleBuild, scheduleBuild, scheduleBuild, scheduleBuild
-
Methods inherited from class hudson.model.AbstractProject
_getRuns, addProperty, addToList, addTrigger, blockBuildWhenDownstreamBuilding, blockBuildWhenUpstreamBuilding, buildDescribable, buildDescribable, checkAbortPermission, checkout, createExecutable, createHistoryWidget, disable, doBuild, doBuildWithParameters, doCheckRetryCount, doConfigSubmit, doDoWipeOutWorkspace, doPolling, doWs, enable, findNearest, findNearest, getActions, getAssignedLabel, getAssignedLabelString, getAuthToken, getBuild, getBuildByNumber, getBuildingDownstream, getBuildingUpstream, getBuildNowText, getBuildTriggerUpstreamProjects, getCauseOfBlockage, getCustomWorkspace, getDelay, getDownstreamProjects, getDownstreamProjectsForApi, getEnvironment, getFirstBuild, getHasCustomQuietPeriod, getIconColor, getJDK, getLastBuild, getLastBuiltOn, getLazyBuildMixIn, getModuleRoot, getModuleRoots, getNearestBuild, getNearestOldBuild, getProminentActions, getQueueItem, getQuietPeriod, getRelationship, getRelevantLabels, getResourceList, getRootProject, getSameNodeConstraint, getScm, getScmCheckoutRetryCount, getScmCheckoutStrategy, getSomeBuildWithWorkspace, getSomeWorkspace, getSubTasks, getTransitiveDownstreamProjects, getTransitiveUpstreamProjects, getTrigger, getTriggers, getUpstreamProjects, getUpstreamProjectsForApi, getWorkspace, getWorkspaceResource, hasAbortPermission, hasCustomScmCheckoutRetryCount, hasParticipant, isBuildable, isConcurrentBuild, isConfigurable, isDisabled, isInQueue, loadBuild, newBuild, onCreatedFromScratch, performDelete, poll, pollSCMChanges, removeFromList, removeRun, removeTrigger, resolveForCLI, save, scheduleBuild, scheduleBuild2, scheduleBuild2, scheduleBuild2, scheduleBuild2, scheduleBuild2, schedulePolling, setAssignedLabel, setAssignedNode, setBlockBuildWhenDownstreamBuilding, setBlockBuildWhenUpstreamBuilding, setConcurrentBuild, setCustomWorkspace, setDisabled, setJDK, setQuietPeriod, setScm, setScmCheckoutStrategy, supportsMakeDisabled, triggers
-
Methods inherited from class hudson.model.Job
checkRename, delete, doBuildStatus, doDescription, doDoRename, doRssAll, doRssChangelog, doRssFailed, getACL, getAllProperties, getBuildDir, getBuildDiscarder, getBuildForCLI, getBuildHealth, getBuildHealthReports, getBuilds, getBuilds, getBuildsAsMap, getBuildsByTimestamp, getBuildStatusIconClassName, getBuildStatusUrl, getBuildTimeGraph, getCharacteristicEnvVars, getEstimatedDuration, getLastBuildsOverThreshold, getLastCompletedBuild, getLastFailedBuild, getLastStableBuild, getLastSuccessfulBuild, getLastUnstableBuild, getLastUnsuccessfulBuild, getLogRotator, getNewBuilds, getNextBuildNumber, getOverrides, getPermalinks, getProperties, getProperty, getProperty, getTimeline, getWidgets, isBuilding, isHoldOffBuildUntilSave, isKeepDependencies, isLogUpdated, isNameEditable, movedTo, onCopiedFrom, removeProperty, removeProperty, renameTo, saveNextBuildNumber, setBuildDiscarder, setLogRotator, supportsLogRotator, updateNextBuildNumber
-
Methods inherited from class hudson.model.AbstractItem
delete, doCheckNewName, doConfigDotXml, doConfirmRename, doDoDelete, doReload, doSetName, doSubmitDescription, getAbsoluteUrl, getApi, getConfigFile, getDescription, getDisplayName, getDisplayNameOrNull, getFullDisplayName, getFullName, getName, getParent, getRelativeDisplayNameFrom, getRelativeNameFromGroup, getRootDir, getSearchName, getSearchUrl, getShortUrl, getTarget, getTaskNoun, getUrl, setDescription, setDisplayName, setDisplayNameOrNull, toString, updateByXml, updateByXml, writeConfigDotXml, writeReplace
-
Methods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getAllActions, removeAction, removeActions, replaceAction, replaceActions
-
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.security.AccessControlled
checkAnyPermission, checkPermission, getACL, hasAnyPermission, hasPermission, hasPermission, hasPermission2
-
Methods inherited from interface hudson.model.BuildableItem
scheduleBuild, scheduleBuild
-
Methods inherited from interface hudson.model.DescriptorByNameOwner
getDescriptorByName
-
Methods inherited from interface hudson.model.Item
delete, getAbsoluteUrl, getDisplayName, getFullDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrl, onCopiedFrom, onCreatedFromScratch, save
-
Methods inherited from interface hudson.model.ItemGroup
allItems, allItems, allItems, getAllItems, getAllItems, getAllItems, getFullDisplayName, getFullName, getItems, getItemsStream, getItemsStream, getUrl
-
Methods inherited from interface jenkins.model.ParameterizedJobMixIn.ParameterizedJob
doBuild, doBuildWithParameters, doCancelQueue, doDisable, doEnable, getParameterizedJobMixIn, isParameterized, makeDisabled
-
Methods inherited from interface hudson.model.PersistenceRoot
getRootDir
-
Methods inherited from interface hudson.model.Queue.Task
checkAbortPermission, getAffinityKey, getCauseOfBlockage, getDefaultAuthentication, getDefaultAuthentication, getDefaultAuthentication2, getDefaultAuthentication2, getFullDisplayName, getName, getSubTasks, getUrl, getWhyBlocked, hasAbortPermission, isBuildBlocked, isConcurrentBuild
-
Methods inherited from interface hudson.model.ResourceActivity
getDisplayName, getResourceList
-
Methods inherited from interface hudson.model.SCMedItem
getScm, poll, pollSCMChanges
-
Methods inherited from interface hudson.search.SearchableModelObject
getSearch
-
Methods inherited from interface hudson.search.SearchItem
getSearchIndex, getSearchName, getSearchUrl
-
Methods inherited from interface hudson.model.queue.SubTask
getAssignedLabel, getEstimatedDuration, getLastBuiltOn, getOwnerTask, getSameNodeConstraint
-
-
-
-
Field Detail
-
globalSettingConfigPath
protected transient String globalSettingConfigPath
Deprecated.since 1.484 settings are provided byglobalSettings
used temporary during maven build to store file path- Since:
- 1.426
-
DESCRIPTOR
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Extension(ordinal=900.0) public static final MavenModuleSet.DescriptorImpl DESCRIPTOR
Descriptor is instantiated as a field purely for backward compatibility. Do not do this in your code. Put @Extension on your DescriptorImpl class instead.
-
-
Method Detail
-
readResolve
public Object readResolve()
- Since:
- 1.491
-
getPrebuilders
public DescribableList<Builder,Descriptor<Builder>> getPrebuilders()
Builders that are run before the main Maven execution.- Since:
- 1.433
-
getPostbuilders
public DescribableList<Builder,Descriptor<Builder>> getPostbuilders()
Builders that are run after the main Maven execution.- Since:
- 1.433
-
getRunPostStepsIfResult
public Result getRunPostStepsIfResult()
postbuilders
are run if the result is better or equal to this threshold.- Returns:
- never null
- Since:
- 1.433
-
setRunPostStepsIfResult
public void setRunPostStepsIfResult(Result v)
-
getUrlChildPrefix
public String getUrlChildPrefix()
- Specified by:
getUrlChildPrefix
in interfaceItemGroup<MavenModule>
-
getItems
public Collection<MavenModule> getItems()
- Specified by:
getItems
in interfaceItemGroup<MavenModule>
-
getModules
@Exported public Collection<MavenModule> getModules()
-
getItem
public MavenModule getItem(String name)
- Specified by:
getItem
in interfaceItemGroup<MavenModule>
-
getModule
public MavenModule getModule(String name)
-
getPronoun
public String getPronoun()
- Overrides:
getPronoun
in classAbstractProject<MavenModuleSet,MavenModuleSetBuild>
-
updateTransientActions
protected void updateTransientActions()
- Overrides:
updateTransientActions
in classAbstractProject<MavenModuleSet,MavenModuleSetBuild>
-
createTransientActions
protected List<Action> createTransientActions()
- Overrides:
createTransientActions
in classAbstractMavenProject<MavenModuleSet,MavenModuleSetBuild>
-
addTransientActionsFromBuild
protected void addTransientActionsFromBuild(MavenModuleSetBuild build, List<Action> collection, Set<Class> added)
- Specified by:
addTransientActionsFromBuild
in classAbstractMavenProject<MavenModuleSet,MavenModuleSetBuild>
collection
- Add the transient actions to this collection.
-
hasDisabledModule
public boolean hasDisabledModule()
Returns true if there's any disabled module.
-
getDisabledModules
public List<MavenModule> getDisabledModules(boolean disabled)
Possibly empty list of all disabled modules (if disabled==true) or all enabeld modules (if disabled==false)
-
createIndenter
public Indenter<MavenModule> createIndenter()
-
isIncrementalBuild
public boolean isIncrementalBuild()
-
isAggregatorStyleBuild
public boolean isAggregatorStyleBuild()
-
usesPrivateRepository
public boolean usesPrivateRepository()
Deprecated.as of 1.448 UsegetLocalRepository()
-
isPerModuleEmail
@Deprecated public boolean isPerModuleEmail()
Deprecated.
-
ignoreUpstremChanges
public boolean ignoreUpstremChanges()
-
ignoreUnsuccessfulUpstreams
public boolean ignoreUnsuccessfulUpstreams()
-
runHeadless
public boolean runHeadless()
-
isArchivingDisabled
public boolean isArchivingDisabled()
-
isSiteArchivingDisabled
public boolean isSiteArchivingDisabled()
-
isFingerprintingDisabled
public boolean isFingerprintingDisabled()
-
setIncrementalBuild
public void setIncrementalBuild(boolean incrementalBuild)
-
setAggregatorStyleBuild
public void setAggregatorStyleBuild(boolean aggregatorStyleBuild)
-
setUsePrivateRepository
public void setUsePrivateRepository(boolean usePrivateRepository)
Deprecated.as of 1.448. UsesetLocalRepository(LocalRepositoryLocator)
instead
-
getLocalRepository
public LocalRepositoryLocator getLocalRepository()
- Returns:
- never null
-
getExplicitLocalRepository
public LocalRepositoryLocator getExplicitLocalRepository()
Undefaulted locally configured value with taking inheritance from the global configuration into account.
-
setLocalRepository
public void setLocalRepository(LocalRepositoryLocator localRepository)
-
setSettings
public void setSettings(SettingsProvider settings)
- Since:
- 1.491
-
setGlobalSettings
public void setGlobalSettings(GlobalSettingsProvider globalSettings)
- Since:
- 1.491
-
setIgnoreUpstremChanges
public void setIgnoreUpstremChanges(boolean ignoreUpstremChanges)
-
setIgnoreUnsuccessfulUpstreams
public void setIgnoreUnsuccessfulUpstreams(boolean ignoreUnsuccessfulUpstreams)
-
setRunHeadless
public void setRunHeadless(boolean runHeadless)
-
setIsArchivingDisabled
public void setIsArchivingDisabled(boolean archivingDisabled)
-
setIsSiteArchivingDisabled
public void setIsSiteArchivingDisabled(boolean siteArchivingDisabled)
-
setIsFingerprintingDisabled
public void setIsFingerprintingDisabled(boolean fingerprintingDisabled)
-
isResolveDependencies
public boolean isResolveDependencies()
-
setResolveDependencies
public void setResolveDependencies(boolean resolveDependencies)
-
isProcessPlugins
public boolean isProcessPlugins()
-
setProcessPlugins
public void setProcessPlugins(boolean processPlugins)
-
getMavenValidationLevel
public int getMavenValidationLevel()
-
getSettings
public SettingsProvider getSettings()
- Since:
- 1.481
-
getGlobalSettings
public GlobalSettingsProvider getGlobalSettings()
- Since:
- 1.481
-
getReporters
public DescribableList<MavenReporter,Descriptor<MavenReporter>> getReporters()
List of activeMavenReporter
s that should be applied to all module builds.
-
getPublishers
public DescribableList<Publisher,Descriptor<Publisher>> getPublishers()
List of activePublisher
s. Can be empty but never null.
-
getPublishersList
public DescribableList<Publisher,Descriptor<Publisher>> getPublishersList()
- Specified by:
getPublishersList
in classAbstractProject<MavenModuleSet,MavenModuleSetBuild>
-
getBuildWrappersList
public DescribableList<BuildWrapper,Descriptor<BuildWrapper>> getBuildWrappersList()
- Specified by:
getBuildWrappersList
in interfaceBuildableItemWithBuildWrappers
-
getBuildWrappers
public DescribableList<BuildWrapper,Descriptor<BuildWrapper>> getBuildWrappers()
Deprecated.as of 1.335 UsegetBuildWrappersList()
to be consistent with other subtypes ofAbstractProject
.List of activeBuildWrapper
s. Can be empty but never null.
-
getDynamic
public Object getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
- Overrides:
getDynamic
in classJob<MavenModuleSet,MavenModuleSetBuild>
-
getRootDirFor
public File getRootDirFor(MavenModule child)
- Specified by:
getRootDirFor
in interfaceItemGroup<MavenModule>
-
onRenamed
public void onRenamed(MavenModule item, String oldName, String newName) throws IOException
- Specified by:
onRenamed
in interfaceItemGroup<MavenModule>
- Throws:
IOException
-
onDeleted
public void onDeleted(MavenModule item) throws IOException
- Specified by:
onDeleted
in interfaceItemGroup<MavenModule>
- Throws:
IOException
-
getAllJobs
public Collection<Job> getAllJobs()
- Specified by:
getAllJobs
in interfaceItem
- Overrides:
getAllJobs
in classJob<MavenModuleSet,MavenModuleSetBuild>
-
getBuildClass
protected Class<MavenModuleSetBuild> getBuildClass()
- Specified by:
getBuildClass
in classAbstractProject<MavenModuleSet,MavenModuleSetBuild>
-
makeSearchIndex
protected SearchIndexBuilder makeSearchIndex()
- Overrides:
makeSearchIndex
in classAbstractProject<MavenModuleSet,MavenModuleSetBuild>
-
isFingerprintConfigured
public boolean isFingerprintConfigured()
- Specified by:
isFingerprintConfigured
in classAbstractProject<MavenModuleSet,MavenModuleSetBuild>
-
onLoad
public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException
- Specified by:
onLoad
in interfaceItem
- Overrides:
onLoad
in classAbstractProject<MavenModuleSet,MavenModuleSetBuild>
- Throws:
IOException
-
assignBuildNumber
public int assignBuildNumber() throws IOException
To make it easy to grasp relationship among modules and the module set, we'll align the build numbers of all the modules.This method is invoked from
Executor.run()
, and because of the mutual exclusion amongMavenModuleSetBuild
andMavenBuild
, we can safely touch all the modules.- Overrides:
assignBuildNumber
in classJob<MavenModuleSet,MavenModuleSetBuild>
- Throws:
IOException
-
logRotate
public void logRotate() throws IOException, InterruptedException
- Overrides:
logRotate
in classJob<MavenModuleSet,MavenModuleSetBuild>
- Throws:
IOException
InterruptedException
-
buildDependencyGraph
protected void buildDependencyGraph(DependencyGraph graph)
- Overrides:
buildDependencyGraph
in classAbstractProject<MavenModuleSet,MavenModuleSetBuild>
-
isDisableTriggerDownstreamProjects
public boolean isDisableTriggerDownstreamProjects()
-
setDisableTriggerDownstreamProjects
public void setDisableTriggerDownstreamProjects(boolean disableTriggerDownstreamProjects)
-
getBlockTriggerWhenBuilding
public boolean getBlockTriggerWhenBuilding()
-
setBlockTriggerWhenBuilding
public void setBlockTriggerWhenBuilding(boolean blockTriggerWhenBuilding)
-
getRootModule
public MavenModule getRootModule()
-
inferMavenInstallation
public Maven.MavenInstallation inferMavenInstallation()
- Specified by:
inferMavenInstallation
in interfaceMaven.ProjectWithMaven
-
getResourceActivities
protected Set<ResourceActivity> getResourceActivities()
- Overrides:
getResourceActivities
in classAbstractProject<MavenModuleSet,MavenModuleSetBuild>
-
getRootPOM
public String getRootPOM()
Deprecated.for backward comp only
-
getRootPOM
public String getRootPOM(EnvVars env)
Gets the location of top-levelpom.xml
relative to the workspace root.- Since:
- 1.467
-
setRootPOM
public void setRootPOM(String rootPOM)
-
asProject
public AbstractProject<?,?> asProject()
- Specified by:
asProject
in interfaceBuildableItemWithBuildWrappers
- Specified by:
asProject
in interfaceSCMedItem
-
getGoals
public String getGoals()
Gets the list of goals to execute.
-
setGoals
public void setGoals(String goals)
-
getAlternateSettings
public String getAlternateSettings()
Deprecated.as of 1.481Gets the workspace-relative path to an alternative Maven settings.xml file.
-
setAlternateSettings
public void setAlternateSettings(String alternateSettings) throws IOException
Deprecated.as of 1.481Sets the workspace-relative path to an alternative Maven settings.xml file.- Throws:
IOException
-
getProfiles
public String getProfiles()
If the list of configured goals contain the "-P" option, return the configured profiles. Otherwise null.
-
getMavenProperties
public Properties getMavenProperties()
Gets the system properties explicitly set in the Maven command line (the "-D" option.)
-
isNonRecursive
public boolean isNonRecursive()
Check for "-N" or "--non-recursive" in the Maven goals/options.
-
getMavenOpts
public String getMavenOpts()
Possibly null, whitespace-separated (including TAB, NL, etc) VM options to be used to launch Maven process. If mavenOpts is null or empty, we'll return the globally-defined MAVEN_OPTS.This method returns a configured value as-is, which can include variabl references. At runtime, use
AbstractMavenBuild.getMavenOpts(TaskListener, EnvVars)
to obtain a fully resolved value.
-
setMavenOpts
public void setMavenOpts(String mavenOpts)
Set mavenOpts. If the new mavenOpts are equals to the global mavenOpts, job mavenOpts are set to null.
-
getMaven
public Maven.MavenInstallation getMaven()
Gets the Maven to invoke. If null, we pick any random Maven installation.
-
setMaven
public void setMaven(String mavenName)
-
getQueueItems
public List<Queue.Item> getQueueItems()
Returns theMavenModule
s that are in the queue.
-
getApproximateQueueItemsQuickly
public List<Queue.Item> getApproximateQueueItemsQuickly()
Returns theMavenModule
s that are in the queue.
-
getUserConfiguredGoals
public String getUserConfiguredGoals()
Gets the list of goals specified by the user, without taking inheritance and POM default goals into account.This is only used to present the UI screen, and in all the other cases
getGoals()
should be used.
-
getEstimatedDurationCandidates
protected List<MavenModuleSetBuild> getEstimatedDurationCandidates()
- Overrides:
getEstimatedDurationCandidates
in classJob<MavenModuleSet,MavenModuleSetBuild>
-
submit
protected void submit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException, Descriptor.FormException
- Overrides:
submit
in classAbstractProject<MavenModuleSet,MavenModuleSetBuild>
- Throws:
IOException
javax.servlet.ServletException
Descriptor.FormException
-
doDoDeleteAllDisabledModules
public org.kohsuke.stapler.HttpResponse doDoDeleteAllDisabledModules() throws IOException, InterruptedException
Delete all disabled modules.- Throws:
IOException
InterruptedException
-
getTestResultAction
public hudson.tasks.test.AbstractTestResultAction<?> getTestResultAction()
-
doCheckFileInWorkspace
public FormValidation doCheckFileInWorkspace(@QueryParameter String value) throws IOException, javax.servlet.ServletException
Check the location of the POM, alternate settings file, etc - any file.- Throws:
IOException
javax.servlet.ServletException
-
doChildrenContextMenu
public ModelObjectWithContextMenu.ContextMenu doChildrenContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception
- Specified by:
doChildrenContextMenu
in interfaceModelObjectWithChildren
- Overrides:
doChildrenContextMenu
in classJob<MavenModuleSet,MavenModuleSetBuild>
- Throws:
Exception
-
getDescriptor
public MavenModuleSet.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<TopLevelItem>
- Specified by:
getDescriptor
in interfaceTopLevelItem
-
-