Package hudson.ivy
Class IvyModule
- All Implemented Interfaces:
ExtensionPoint,BuildableItem,DescriptorByNameOwner,Item,ModelObject,PersistenceRoot,SubTask,Queue.Task,ResourceActivity,Saveable,SearchableModelObject,SearchItem,AccessControlled,LazyBuildMixIn.LazyLoadingJob<IvyModule,,IvyBuild> Loadable,ModelObjectWithChildren,ModelObjectWithContextMenu,ParameterizedJobMixIn.ParameterizedJob<IvyModule,,IvyBuild> TriggeredItem,OnMaster,HasWidgets,org.kohsuke.stapler.HttpDeletable,org.kohsuke.stapler.StaplerOverridable,org.kohsuke.stapler.StaplerProxy
Job that builds projects based on Ivy.- Author:
- Timothy Bingaman
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBecause the upstream module build is in progress, and we are configured to wait for that.Nested classes/interfaces inherited from class hudson.model.AbstractProject
AbstractProject.AbstractProjectDescriptor, AbstractProject.BecauseOfBuildInProgress, AbstractProject.BecauseOfDownstreamBuildInProgress, AbstractProject.BecauseOfUpstreamBuildInProgress, AbstractProject.LabelValidatorNested classes/interfaces inherited from class hudson.model.Job
Job.LastItemListener, Job.SubItemBuildsLocationImplNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface org.kohsuke.stapler.HttpDeletable
org.kohsuke.stapler.HttpDeletable.HttpDeletableDispatcherNested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType -
Field Summary
Fields inherited from class hudson.model.AbstractProject
ABORT, blockBuildWhenDownstreamBuilding, blockBuildWhenUpstreamBuilding, BUILD_NOW_TEXT, builds, disabled, transientActions, triggersFields inherited from class hudson.model.Job
HISTORY_ADAPTER, nextBuildNumber, properties, runIdMigratorFields inherited from class hudson.model.AbstractItem
description, name, PRONOUN, SKIP_PERMISSION_CHECK, TASK_NOUN -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGets organisation+name+revision asModuleDependency.protected voidCreates a list ofPublishers to be used for a build of this project.protected voidprotected Collection<IvyModule> Returns all Ivy modules in this Jenkins instance.IvyModuleuses the workspace of theIvyModuleSet, so it always needs to be built on the same slave as the parent.Gets the Ivy branch in the ivy.xml file as of the last build.getJDK()IvyModulefollows the same log rotation schedule as its parent.List of activePublishers configured for this module.Relative path to this module's root directory from the workspace of aIvyModuleSet.Gets the revision number in the ivy.xml file as of the last build.Gets the list of targets to execute for this module.Deprecated.booleanbooleanbooleanbooleanprotected IvyBuildnewBuild()voidprotected voidvoidsetLogRotator(LogRotator logRotator) Deprecated.Not allowed to configure log rotation per module.protected voidsubmit(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) booleanprotected voidMethods inherited from class hudson.ivy.AbstractIvyProject
createTransientActions, scheduleBuildMethods inherited from class hudson.model.AbstractProject
_getRuns, addProperty, addToList, addTrigger, blockBuildWhenDownstreamBuilding, blockBuildWhenUpstreamBuilding, buildDescribable, buildDescribable, checkAbortPermission, checkout, createExecutable, disable, doBuild, doBuildWithParameters, doCheckRetryCount, doConfigSubmit, doDoWipeOutWorkspace, doPolling, doWs, enable, findNearest, findNearest, getActions, getAssignedLabelString, getAuthToken, getBuild, getBuildByNumber, getBuildingDownstream, getBuildingUpstream, getBuildNowText, getBuildTriggerUpstreamProjects, getCustomWorkspace, getDelay, getDownstreamProjects, getDownstreamProjectsForApi, getEnvironment, getEstimatedDurationCandidates, getFirstBuild, getHasCustomQuietPeriod, getIconColor, getLastBuild, getLastBuiltOn, getLazyBuildMixIn, getModuleRoot, getModuleRoots, getNearestBuild, getNearestOldBuild, getProminentActions, getQueueItem, getQuietPeriod, getRelationship, getRelevantLabels, getResourceActivities, getResourceList, getRootProject, getSameNodeConstraint, getScm, getScmCheckoutRetryCount, getScmCheckoutStrategy, getSomeBuildWithWorkspace, getSomeWorkspace, getSubTasks, getTransitiveDownstreamProjects, getTransitiveUpstreamProjects, getTrigger, getTriggers, getUpstreamProjects, getUpstreamProjectsForApi, getWorkspace, hasAbortPermission, hasCustomScmCheckoutRetryCount, hasParticipant, isConcurrentBuild, isConfigurable, isDisabled, isInQueue, loadBuild, makeSearchIndex, onCreatedFromScratch, 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, submit, supportsMakeDisabled, triggersMethods inherited from class hudson.model.Job
assignBuildNumber, checkRename, createHistoryWidget, delete, doBuildStatus, doChildrenContextMenu, doChildrenContextMenu, doDescription, doDoRename, doRssAll, doRssChangelog, doRssFailed, fastUpdateNextBuildNumber, getACL, getAllJobs, getAllProperties, getBuildDir, getBuildDiscarder, getBuildForCLI, getBuildHealth, getBuildHealthReports, getBuilds, getBuilds, getBuildsAsMap, getBuildsByTimestamp, getBuildStatusIconClassName, getBuildStatusUrl, getBuildTimeGraph, getCharacteristicEnvVars, getDynamic, getDynamic, getEstimatedDuration, getLastBuildsOverThreshold, getLastCompletedBuild, getLastFailedBuild, getLastStableBuild, getLastSuccessfulBuild, getLastUnstableBuild, getLastUnsuccessfulBuild, getNewBuilds, getNextBuildNumber, getOverrides, getPermalinks, getProperties, getProperty, getProperty, getTimeline, isBuilding, isHoldOffBuildUntilSave, isKeepDependencies, isLogUpdated, logRotate, movedTo, onCopiedFrom, removeProperty, removeProperty, renameTo, saveNextBuildNumber, setBuildDiscarder, updateNextBuildNumberMethods inherited from class hudson.model.AbstractItem
delete, delete, doCheckNewName, doConfigDotXml, doConfigDotXml, doConfirmRename, doDoDelete, doDoDelete, doReload, doSubmitDescription, doSubmitDescription, getAbsoluteUrl, getApi, getConfigFile, getDescription, getDisplayNameOrNull, getFullDisplayName, getFullName, getName, getRelativeDisplayNameFrom, getRelativeNameFromGroup, getRootDir, getSearchName, getSearchUrl, getTarget, getTaskNoun, getUrl, load, setDescription, setDisplayName, setDisplayNameOrNull, toString, updateByXml, updateByXml, writeConfigDotXml, writeReplaceMethods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, doContextMenu, getAction, getAction, getActions, getAllActions, removeAction, removeActions, replaceAction, replaceActionsMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, getACL, hasAnyPermission, hasPermission, hasPermission, hasPermission2Methods inherited from interface hudson.model.BuildableItem
scheduleBuild, scheduleBuildMethods inherited from interface hudson.model.DescriptorByNameOwner
getDescriptorByNameMethods inherited from interface jenkins.widgets.HasWidgets
getWidget, getWidgetsMethods inherited from interface hudson.model.Item
delete, getAbsoluteUrl, getAllJobs, getFullDisplayName, getFullName, getName, getRelativeNameFrom, getRelativeNameFrom, getUrl, onCopiedFromMethods inherited from interface jenkins.model.ParameterizedJobMixIn.ParameterizedJob
doBuild, doBuild, doBuildWithParameters, doBuildWithParameters, doCancelQueue, doDisable, doEnable, getParameterizedJobMixIn, isParameterized, makeDisabled, scheduleBuildMethods inherited from interface hudson.model.PersistenceRoot
getRootDirMethods inherited from interface hudson.model.Queue.Task
getAffinityKey, getDefaultAuthentication, getDefaultAuthentication, getDefaultAuthentication2, getDefaultAuthentication2, getFullDisplayName, getName, getUrl, getWhyBlocked, isBuildBlockedMethods inherited from interface hudson.search.SearchableModelObject
getSearchMethods inherited from interface hudson.search.SearchItem
getSearchIndex, getSearchName, getSearchUrlMethods inherited from interface hudson.model.queue.SubTask
getEstimatedDuration, getOwnerExecutable, getOwnerTask
-
Method Details
-
getBuildWrappersList
-
getLogRotator
IvyModulefollows the same log rotation schedule as its parent.- Overrides:
getLogRotatorin classJob<IvyModule,IvyBuild>
-
setLogRotator
Deprecated.Not allowed to configure log rotation per module.- Overrides:
setLogRotatorin classJob<IvyModule,IvyBuild>
-
supportsLogRotator
public boolean supportsLogRotator()- Overrides:
supportsLogRotatorin classJob<IvyModule,IvyBuild>
-
isBuildable
public boolean isBuildable()- Specified by:
isBuildablein interfaceParameterizedJobMixIn.ParameterizedJob<IvyModule,IvyBuild> - Overrides:
isBuildablein classAbstractProject<IvyModule,IvyBuild>
-
doSetName
- Overrides:
doSetNamein classAbstractItem
-
onLoad
- Specified by:
onLoadin interfaceItem- Overrides:
onLoadin classAbstractProject<IvyModule,IvyBuild> - Throws:
IOException
-
getRelativePath
Relative path to this module's root directory from the workspace of aIvyModuleSet.The path separator is normalized to '/'.
-
getRevision
Gets the revision number in the ivy.xml file as of the last build.- Returns:
- This method can return null if Jenkins loaded old data that didn't record this information, so that situation needs to be handled gracefully.
-
getIvyBranch
Gets the Ivy branch in the ivy.xml file as of the last build.- Returns:
- This method can return null if Jenkins loaded old data that didn't record this information, so that situation needs to be handled gracefully.
-
getTargets
Gets the list of targets to execute for this module. -
getRelativePathToDescriptorFromModuleRoot
-
getUserConfiguredRelativePathToDescriptorFromModuleRoot
-
getRelativePathToModuleRoot
-
getPublishersList
- Specified by:
getPublishersListin classAbstractProject<IvyModule,IvyBuild>
-
getJDK
- Overrides:
getJDKin classAbstractProject<IvyModule,IvyBuild>
-
getBuildClass
- Specified by:
getBuildClassin classAbstractProject<IvyModule,IvyBuild>
-
newBuild
- Overrides:
newBuildin classAbstractProject<IvyModule,IvyBuild> - Throws:
IOException
-
getModuleName
-
asDependency
Gets organisation+name+revision asModuleDependency. -
getShortUrl
- Specified by:
getShortUrlin interfaceItem- Overrides:
getShortUrlin classAbstractItem
-
getDisplayName
- Specified by:
getDisplayNamein interfaceItem- Specified by:
getDisplayNamein interfaceModelObject- Specified by:
getDisplayNamein interfaceResourceActivity- Overrides:
getDisplayNamein classAbstractItem
-
getPronoun
- Overrides:
getPronounin classAbstractProject<IvyModule,IvyBuild>
-
isNameEditable
public boolean isNameEditable()- Overrides:
isNameEditablein classJob<IvyModule,IvyBuild>
-
getParent
- Specified by:
getParentin interfaceItem- Overrides:
getParentin classAbstractItem
-
getAssignedLabel
IvyModuleuses the workspace of theIvyModuleSet, so it always needs to be built on the same slave as the parent.- Specified by:
getAssignedLabelin interfaceSubTask- Overrides:
getAssignedLabelin classAbstractProject<IvyModule,IvyBuild>
-
getWorkspaceResource
Deprecated.as of 1.319 inAbstractProject.Workspace of aIvyModuleis a part of the parent's workspace.That is,
IvyModuleSetbuilds are incompatible with anyIvyModulebuilds, whereasIvyModulebuilds are compatible with each other.- Overrides:
getWorkspaceResourcein classAbstractProject<IvyModule,IvyBuild>
-
isFingerprintConfigured
public boolean isFingerprintConfigured()- Specified by:
isFingerprintConfiguredin classAbstractProject<IvyModule,IvyBuild>
-
updateTransientActions
protected void updateTransientActions()- Overrides:
updateTransientActionsin classAbstractProject<IvyModule,IvyBuild>
-
buildDependencyGraph
- Overrides:
buildDependencyGraphin classAbstractProject<IvyModule,IvyBuild>
-
getAllIvyModules
Returns all Ivy modules in this Jenkins instance. -
getCauseOfBlockage
- Specified by:
getCauseOfBlockagein interfaceQueue.Task- Overrides:
getCauseOfBlockagein classAbstractProject<IvyModule,IvyBuild>
-
addTransientActionsFromBuild
protected void addTransientActionsFromBuild(IvyBuild build, List<Action> collection, Set<Class> added) - Specified by:
addTransientActionsFromBuildin classAbstractIvyProject<IvyModule,IvyBuild> - Parameters:
collection- Add the transient actions to this collection.
-
getPublishers
List of activePublishers configured for this module. -
submit
protected void submit(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException, Descriptor.FormException - Overrides:
submitin classAbstractProject<IvyModule,IvyBuild> - Throws:
IOExceptionjakarta.servlet.ServletExceptionDescriptor.FormException
-
performDelete
- Overrides:
performDeletein classAbstractProject<IvyModule,IvyBuild> - Throws:
IOExceptionInterruptedException
-
createModulePublishers
Creates a list ofPublishers to be used for a build of this project. -
isUseUpstreamParameters
public boolean isUseUpstreamParameters()- Specified by:
isUseUpstreamParametersin classAbstractIvyProject<IvyModule,IvyBuild>
-
AbstractProject.