public final class IvyModuleSet extends AbstractIvyProject<IvyModuleSet,IvyModuleSetBuild> implements hudson.model.TopLevelItem, hudson.model.ItemGroup<IvyModule>, hudson.model.SCMedItem, hudson.model.Saveable, hudson.model.BuildableItemWithBuildWrappers
IvyModules.
This corresponds to the group of Ivy module descriptors that constitute a single branch of projects.
| Modifier and Type | Class and Description |
|---|---|
static class |
IvyModuleSet.BecauseOfModuleBuildInProgress
Because one of our own modules is currently building.
|
static class |
IvyModuleSet.DescriptorImpl |
hudson.model.AbstractProject.AbstractProjectDescriptor, hudson.model.AbstractProject.BecauseOfBuildInProgress, hudson.model.AbstractProject.BecauseOfDownstreamBuildInProgress, hudson.model.AbstractProject.BecauseOfUpstreamBuildInProgress, hudson.model.AbstractProject.LabelValidatorhudson.model.Job.LastItemListener, hudson.model.Job.SubItemBuildsLocationImpl| Modifier and Type | Field and Description |
|---|---|
static IvyModuleSet.DescriptorImpl |
DESCRIPTOR |
ABORT, blockBuildWhenDownstreamBuilding, blockBuildWhenUpstreamBuilding, BUILD_NOW_TEXT, builds, disabled, transientActions, triggersHISTORY_ADAPTER, nextBuildNumber, properties, runIdMigrator| Constructor and Description |
|---|
IvyModuleSet(hudson.model.ItemGroup parent,
java.lang.String name) |
IvyModuleSet(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTransientActionsFromBuild(IvyModuleSetBuild build,
java.util.List<hudson.model.Action> collection,
java.util.Set<java.lang.Class> added) |
hudson.model.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(hudson.model.DependencyGraph graph) |
protected java.util.List<hudson.model.Action> |
createTransientActions() |
hudson.util.FormValidation |
doCheckFileInWorkspace(java.lang.String value)
Check the location of the ivy descriptor file, alternate settings file, etc - any file.
|
hudson.util.FormValidation |
doCheckIvySettingsFile(java.lang.String value)
Check that the provided file exists, just in case.
|
void |
doDoDeleteAllDisabledModules(org.kohsuke.stapler.StaplerResponse rsp)
Delete all disabled modules.
|
java.util.Collection<hudson.model.Job> |
getAllJobs() |
protected java.lang.Class<IvyModuleSetBuild> |
getBuildClass() |
java.util.ArrayList<hudson.model.Descriptor<IvyBuilderType>> |
getBuilderTypeDescriptors() |
hudson.util.DescribableList<hudson.tasks.BuildWrapper,hudson.model.Descriptor<hudson.tasks.BuildWrapper>> |
getBuildWrappers()
Deprecated.
as of 1.335
Use
getBuildWrappersList() to be consistent with other subtypes of AbstractProject. |
hudson.util.DescribableList<hudson.tasks.BuildWrapper,hudson.model.Descriptor<hudson.tasks.BuildWrapper>> |
getBuildWrappersList() |
hudson.model.queue.CauseOfBlockage |
getCauseOfBlockage() |
java.lang.String |
getChangedModulesProperty() |
IvyModuleSet.DescriptorImpl |
getDescriptor() |
java.util.List<IvyModule> |
getDisabledModules(boolean disabled)
Possibly empty list of all disabled modules (if disabled==true)
or all enabled modules (if disabled==false)
|
java.lang.Object |
getDynamic(java.lang.String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
IvyModule |
getItem(java.lang.String name) |
java.util.Collection<IvyModule> |
getItems() |
java.lang.String |
getIvyBranch() |
IvyBuilderType |
getIvyBuilderType() |
java.lang.String |
getIvyFileExcludesPattern() |
java.lang.String |
getIvyFilePattern() |
java.lang.String |
getIvySettingsFile() |
java.lang.String |
getIvySettingsPropertyFiles() |
IvyModule |
getModule(java.lang.String name) |
java.lang.Class<? extends hudson.model.AbstractProject> |
getModuleClass() |
hudson.util.DescribableList<hudson.tasks.Publisher,hudson.model.Descriptor<hudson.tasks.Publisher>> |
getModulePublishers()
List of active
Publishers that should be applied to all module builds. |
java.util.Collection<IvyModule> |
getModules() |
hudson.util.DescribableList<hudson.tasks.Publisher,hudson.model.Descriptor<hudson.tasks.Publisher>> |
getPublishers()
List of active
Publishers. |
hudson.util.DescribableList<hudson.tasks.Publisher,hudson.model.Descriptor<hudson.tasks.Publisher>> |
getPublishersList() |
java.util.List<hudson.model.Queue.Item> |
getQueueItems()
Returns the
IvyModules that are in the queue. |
java.lang.String |
getRelativePathToDescriptorFromModuleRoot() |
protected java.util.Set<hudson.model.ResourceActivity> |
getResourceActivities() |
java.io.File |
getRootDirFor(IvyModule child) |
java.lang.String |
getSettings() |
hudson.tasks.test.AbstractTestResultAction<?> |
getTestResultAction() |
java.lang.String |
getUrlChildPrefix() |
boolean |
hasDisabledModule()
Returns true if there's any disabled module.
|
boolean |
ignoreUpstreamChanges() |
boolean |
isAggregatorStyleBuild() |
boolean |
isAllowedToTriggerDownstream() |
boolean |
isArchivingDisabled() |
boolean |
isFingerprintConfigured() |
boolean |
isIncrementalBuild() |
boolean |
isUseUpstreamParameters() |
void |
logRotate() |
protected hudson.search.SearchIndexBuilder |
makeSearchIndex() |
void |
onDeleted(IvyModule item) |
void |
onLoad(hudson.model.ItemGroup<? extends hudson.model.Item> parent,
java.lang.String name) |
void |
onRenamed(IvyModule item,
java.lang.String oldName,
java.lang.String newName) |
protected java.lang.Object |
readResolve() |
void |
save() |
void |
setAggregatorStyleBuild(boolean aggregatorStyleBuild) |
void |
setAllowedToTriggerDownstream(boolean allowedToTriggerDownstream) |
void |
setIgnoreUpstreamChanges(boolean ignoreUpstreamChanges) |
void |
setIncrementalBuild(boolean incrementalBuild) |
void |
setIsArchivingDisabled(boolean archivingDisabled) |
void |
setIvyBranch(java.lang.String ivyBranch) |
void |
setIvyFileExcludesPattern(java.lang.String ivyFileExcludesPattern) |
void |
setIvyFilePattern(java.lang.String ivyFilePattern) |
void |
setIvySettingsFile(java.lang.String ivySettingsFile) |
void |
setIvySettingsPropertyFiles(java.lang.String ivySettingsPropertyFiles) |
void |
setRelativePathToDescriptorFromModuleRoot(java.lang.String relativePathToDescriptorFromModuleRoot) |
void |
setUseUpstreamParameters(boolean useUpstreamParameters) |
protected void |
submit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
protected void |
updateTransientActions() |
scheduleBuild_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, getCustomWorkspace, getDelay, getDownstreamProjects, getDownstreamProjectsForApi, getEnvironment, getFirstBuild, getHasCustomQuietPeriod, getIconColor, getJDK, getLastBuild, getLastBuiltOn, getLazyBuildMixIn, getModuleRoot, getModuleRoots, getNearestBuild, getNearestOldBuild, getProminentActions, getPronoun, 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, scheduleBuild, scheduleBuild2, scheduleBuild2, scheduleBuild2, scheduleBuild2, scheduleBuild2, schedulePolling, setAssignedLabel, setAssignedNode, setBlockBuildWhenDownstreamBuilding, setBlockBuildWhenUpstreamBuilding, setConcurrentBuild, setCustomWorkspace, setDisabled, setJDK, setQuietPeriod, setScm, setScmCheckoutStrategy, supportsMakeDisabled, triggerscheckRename, delete, doBuildStatus, doChildrenContextMenu, doDescription, doDoRename, doRssAll, doRssChangelog, doRssFailed, getACL, getAllProperties, getBuildDir, getBuildDiscarder, getBuildForCLI, getBuildHealth, getBuildHealthReports, getBuilds, getBuilds, getBuildsAsMap, getBuildsByTimestamp, getBuildStatusIconClassName, getBuildStatusUrl, getBuildTimeGraph, getCharacteristicEnvVars, getEstimatedDuration, getEstimatedDurationCandidates, 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, updateNextBuildNumberdelete, 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, writeConfigDotXmladdAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getAllActions, removeAction, removeActions, replaceAction, replaceActionsgetSearch, getSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitallItems, allItems, getAllItems, getAllItems, getFullDisplayName, getFullName, getUrlscheduleBuild, scheduleBuild, scheduleBuild, scheduleBuilddelete, getAbsoluteUrl, getDisplayName, getFullDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrl, onCopiedFrom, onCreatedFromScratchgetSearchIndex, getSearchName, getSearchUrlcheckPermission, getACL, hasPermission, hasPermissioncheckAbortPermission, getDefaultAuthentication, getDefaultAuthentication, getFullDisplayName, getName, getSubTasks, getUrl, getWhyBlocked, hasAbortPermission, isBuildBlocked, isConcurrentBuildcreateExecutable, getAssignedLabel, getEstimatedDuration, getLastBuiltOn, getOwnerTask, getSameNodeConstraint@Extension public static final IvyModuleSet.DescriptorImpl DESCRIPTOR
public IvyModuleSet(java.lang.String name)
public IvyModuleSet(hudson.model.ItemGroup parent,
java.lang.String name)
public boolean isUseUpstreamParameters()
isUseUpstreamParameters in class AbstractIvyProject<IvyModuleSet,IvyModuleSetBuild>public void setUseUpstreamParameters(boolean useUpstreamParameters)
public java.lang.String getUrlChildPrefix()
getUrlChildPrefix in interface hudson.model.ItemGroup<IvyModule>public java.util.Collection<IvyModule> getItems()
getItems in interface hudson.model.ItemGroup<IvyModule>@Exported public java.util.Collection<IvyModule> getModules()
public IvyModule getItem(java.lang.String name)
getItem in interface hudson.model.ItemGroup<IvyModule>public IvyModule getModule(java.lang.String name)
public java.lang.String getSettings()
protected void updateTransientActions()
updateTransientActions in class hudson.model.AbstractProject<IvyModuleSet,IvyModuleSetBuild>protected java.util.List<hudson.model.Action> createTransientActions()
createTransientActions in class AbstractIvyProject<IvyModuleSet,IvyModuleSetBuild>protected void addTransientActionsFromBuild(IvyModuleSetBuild build, java.util.List<hudson.model.Action> collection, java.util.Set<java.lang.Class> added)
addTransientActionsFromBuild in class AbstractIvyProject<IvyModuleSet,IvyModuleSetBuild>collection - Add the transient actions to this collection.public boolean hasDisabledModule()
public java.util.List<IvyModule> getDisabledModules(boolean disabled)
public boolean isIncrementalBuild()
public java.lang.String getChangedModulesProperty()
public boolean isAggregatorStyleBuild()
public boolean ignoreUpstreamChanges()
public boolean isAllowedToTriggerDownstream()
public void setAllowedToTriggerDownstream(boolean allowedToTriggerDownstream)
public boolean isArchivingDisabled()
public void setIncrementalBuild(boolean incrementalBuild)
public java.lang.String getIvyFilePattern()
public void setIvyFilePattern(java.lang.String ivyFilePattern)
public java.lang.String getIvyFileExcludesPattern()
public void setIvyFileExcludesPattern(java.lang.String ivyFileExcludesPattern)
public java.lang.String getIvySettingsFile()
public void setIvySettingsFile(java.lang.String ivySettingsFile)
public java.lang.String getIvySettingsPropertyFiles()
public void setIvySettingsPropertyFiles(java.lang.String ivySettingsPropertyFiles)
public java.lang.String getIvyBranch()
public void setIvyBranch(java.lang.String ivyBranch)
public IvyBuilderType getIvyBuilderType()
public void setAggregatorStyleBuild(boolean aggregatorStyleBuild)
public void setIgnoreUpstreamChanges(boolean ignoreUpstreamChanges)
public void setIsArchivingDisabled(boolean archivingDisabled)
public hudson.util.DescribableList<hudson.tasks.Publisher,hudson.model.Descriptor<hudson.tasks.Publisher>> getModulePublishers()
Publishers that should be applied to all module builds.public hudson.util.DescribableList<hudson.tasks.Publisher,hudson.model.Descriptor<hudson.tasks.Publisher>> getPublishers()
Publishers. Can be empty but never null.public hudson.util.DescribableList<hudson.tasks.Publisher,hudson.model.Descriptor<hudson.tasks.Publisher>> getPublishersList()
getPublishersList in class hudson.model.AbstractProject<IvyModuleSet,IvyModuleSetBuild>public hudson.util.DescribableList<hudson.tasks.BuildWrapper,hudson.model.Descriptor<hudson.tasks.BuildWrapper>> getBuildWrappersList()
getBuildWrappersList in interface hudson.model.BuildableItemWithBuildWrappers@Deprecated public hudson.util.DescribableList<hudson.tasks.BuildWrapper,hudson.model.Descriptor<hudson.tasks.BuildWrapper>> getBuildWrappers()
getBuildWrappersList() to be consistent with other subtypes of AbstractProject.BuildWrappers. Can be empty but never null.public java.lang.Object getDynamic(java.lang.String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
getDynamic in class hudson.model.Job<IvyModuleSet,IvyModuleSetBuild>public java.io.File getRootDirFor(IvyModule child)
getRootDirFor in interface hudson.model.ItemGroup<IvyModule>public void onRenamed(IvyModule item, java.lang.String oldName, java.lang.String newName) throws java.io.IOException
onRenamed in interface hudson.model.ItemGroup<IvyModule>java.io.IOExceptionpublic void onDeleted(IvyModule item) throws java.io.IOException
onDeleted in interface hudson.model.ItemGroup<IvyModule>java.io.IOExceptionpublic java.util.Collection<hudson.model.Job> getAllJobs()
getAllJobs in interface hudson.model.ItemgetAllJobs in class hudson.model.Job<IvyModuleSet,IvyModuleSetBuild>protected java.lang.Class<IvyModuleSetBuild> getBuildClass()
getBuildClass in class hudson.model.AbstractProject<IvyModuleSet,IvyModuleSetBuild>protected hudson.search.SearchIndexBuilder makeSearchIndex()
makeSearchIndex in class hudson.model.AbstractProject<IvyModuleSet,IvyModuleSetBuild>public boolean isFingerprintConfigured()
isFingerprintConfigured in class hudson.model.AbstractProject<IvyModuleSet,IvyModuleSetBuild>public void save()
throws java.io.IOException
save in interface hudson.model.Itemsave in interface hudson.model.Saveablesave in class hudson.model.AbstractProject<IvyModuleSet,IvyModuleSetBuild>java.io.IOExceptionpublic void onLoad(hudson.model.ItemGroup<? extends hudson.model.Item> parent,
java.lang.String name)
throws java.io.IOException
onLoad in interface hudson.model.ItemonLoad in class hudson.model.AbstractProject<IvyModuleSet,IvyModuleSetBuild>java.io.IOExceptionpublic int assignBuildNumber()
throws java.io.IOException
This method is invoked from Executor.run(),
and because of the mutual exclusion among IvyModuleSetBuild
and IvyBuild, we can safely touch all the modules.
assignBuildNumber in class hudson.model.Job<IvyModuleSet,IvyModuleSetBuild>java.io.IOExceptionpublic void logRotate()
throws java.io.IOException,
java.lang.InterruptedException
logRotate in class hudson.model.Job<IvyModuleSet,IvyModuleSetBuild>java.io.IOExceptionjava.lang.InterruptedExceptionprotected void buildDependencyGraph(hudson.model.DependencyGraph graph)
buildDependencyGraph in class hudson.model.AbstractProject<IvyModuleSet,IvyModuleSetBuild>protected java.util.Set<hudson.model.ResourceActivity> getResourceActivities()
getResourceActivities in class hudson.model.AbstractProject<IvyModuleSet,IvyModuleSetBuild>public hudson.model.queue.CauseOfBlockage getCauseOfBlockage()
getCauseOfBlockage in interface hudson.model.Queue.TaskgetCauseOfBlockage in class hudson.model.AbstractProject<IvyModuleSet,IvyModuleSetBuild>public hudson.model.AbstractProject<?,?> asProject()
asProject in interface hudson.model.BuildableItemWithBuildWrappersasProject in interface hudson.model.SCMedItempublic java.lang.String getRelativePathToDescriptorFromModuleRoot()
public void setRelativePathToDescriptorFromModuleRoot(java.lang.String relativePathToDescriptorFromModuleRoot)
public java.util.List<hudson.model.Queue.Item> getQueueItems()
IvyModules that are in the queue.protected void submit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException
submit in class hudson.model.AbstractProject<IvyModuleSet,IvyModuleSetBuild>java.io.IOExceptionjavax.servlet.ServletExceptionhudson.model.Descriptor.FormExceptionpublic java.lang.Class<? extends hudson.model.AbstractProject> getModuleClass()
public hudson.tasks.test.AbstractTestResultAction<?> getTestResultAction()
public void doDoDeleteAllDisabledModules(org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic hudson.util.FormValidation doCheckFileInWorkspace(@QueryParameter
java.lang.String value)
throws java.io.IOException,
javax.servlet.ServletException
java.io.IOExceptionjavax.servlet.ServletExceptionpublic hudson.util.FormValidation doCheckIvySettingsFile(@QueryParameter
java.lang.String value)
throws java.io.IOException,
javax.servlet.ServletException
java.io.IOExceptionjavax.servlet.ServletExceptionpublic java.util.ArrayList<hudson.model.Descriptor<IvyBuilderType>> getBuilderTypeDescriptors()
public IvyModuleSet.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.model.TopLevelItem>getDescriptor in interface hudson.model.TopLevelItemprotected java.lang.Object readResolve()