Package hudson.ivy
Class IvyModuleSetBuild
java.lang.Object
- All Implemented Interfaces:
ExtensionPoint,DescriptorByNameOwner,ModelObject,PersistenceRoot,Queue.Executable,Saveable,SearchableModelObject,SearchItem,AccessControlled,Comparable<IvyModuleSetBuild>,Runnable,WithConsoleUrl,HistoricalBuild,LazyBuildMixIn.LazyLoadingRun<IvyModuleSet,,IvyModuleSetBuild> ModelObjectWithContextMenu,RunWithSCM<IvyModuleSet,,IvyModuleSetBuild> OnMaster,org.kohsuke.stapler.StaplerProxy
Build for IvyModuleSet.
A "build" of IvyModuleSet consists of:
- Update the workspace.
- Parse ivy.xml files
- Trigger module builds.
IvyBuilds are done on
this.- Author:
- Timothy Bingaman
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.ivy.AbstractIvyBuild
AbstractIvyBuild.ParameterizedUpstreamCauseNested classes/interfaces inherited from class hudson.model.AbstractBuild
AbstractBuild.AbstractBuildExecution, AbstractBuild.AbstractRunner, AbstractBuild.DependencyChangeNested classes/interfaces inherited from class hudson.model.Run
Run.Artifact, Run.ArtifactList, Run.KeepLogBuildBadge, Run.RedirectUp, Run.RunExecution, Run.Runner, Run.RunnerAbortedException, Run.StatusSummarizer, Run.SummaryNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType -
Field Summary
FieldsFields inherited from class hudson.model.AbstractBuild
buildEnvironmentsFields inherited from class hudson.model.Run
ARTIFACTS, charset, DELETE, description, duration, FEED_ADAPTER, FEED_ADAPTER_LATEST, LIST_CUTOFF, nextBuild, number, ORDER_BY_DATE, PERMISSIONS, previousBuild, project, QUEUE_ID_UNKNOWN, result, SKIP_PERMISSION_CHECK, timestamp, UPDATE, XSTREAM, XSTREAM2 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindModuleBuildActions(Class<T> action) FindsActions from all the module builds that belong to thisIvyModuleSetBuild.getDynamic(String token, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) ExposesANT_OPTSto forked processes.Computes the module builds that correspond to this build.Computes the latest module builds that correspond to this build.Displays the combined status of all modules.voidregisterAsProjectAction(IvyReporter reporter) voidrun()Methods inherited from class hudson.ivy.AbstractIvyBuild
scheduleDownstreamBuildsMethods inherited from class hudson.model.AbstractBuild
addAction, calculateCulprits, createReference, doStop, doStop, dropLinks, due, getAggregatedTestResultAction, getBuildVariableResolver, getBuildVariables, getBuiltOn, getBuiltOnStr, getChangeSet, getChangeSets, getCulpritIds, getCulprits, getDependencyChanges, getDownstreamBuilds, getDownstreamBuilds, getEnvironments, getHudsonVersion, getModuleRoot, getModuleRoots, getNextBuild, getParentExecutable, getPersistentActions, getPreviousBuild, getProject, getRootBuild, getRunMixIn, getSensitiveBuildVariables, getTestResultAction, getTransitiveUpstreamBuilds, getUpstreamBuilds, getUpstreamRelationship, getUpstreamRelationshipBuild, getUpUrl, getWhyKeepLog, getWorkspace, hasChangeSetComputed, setBuiltOnStr, setWorkspace, shouldCalculateCulpritsMethods inherited from class hudson.model.Run
_this, canToggleLogKeep, compareTo, delete, deleteArtifacts, doArtifact, doBuildNumber, doBuildStatus, doBuildTimestamp, doConfigSubmit, doConsoleText, doConsoleText, doDoDelete, doDoDelete, doProgressiveLog, doSubmitDescription, doToggleLogKeep, execute, fromExternalizableId, getAbsoluteUrl, getACL, getApi, getArtifactManager, getArtifacts, getArtifactsDir, getArtifactsUpTo, getBadgeActions, getBuildFingerprints, getBuildsOverThreshold, getBuildStatusSummary, getCause, getCauses, getCharacteristicEnvVars, getCharset, getConsoleUrl, getDescription, getDisplayName, getDuration, getDurationString, getDynamic, getEnvironment, getEnvVars, getEstimatedDuration, getExecutor, getExternalizableId, getFullDisplayName, getHasArtifacts, getIconColor, getId, getLog, getLog, getLogFile, getLogInputStream, getLogReader, getLogText, getNumber, getOneOffExecutor, getParameterValues, getPreviousBuildInProgress, getPreviousBuildsOverThreshold, getPreviousBuiltBuild, getPreviousCompletedBuild, getPreviousFailedBuild, getPreviousNotFailedBuild, getPreviousSuccessfulBuild, getQueueId, getRootDir, getSearchUrl, getStartTimeInMillis, getTarget, getTime, getTimeInMillis, getTimestamp, getTimestampString, getTimestampString2, getTransientActions, getUrl, hasCustomDisplayName, hasntStartedYet, isBuilding, isInProgress, isKeepLog, isLogUpdated, keepLog, keepLog, makeSearchIndex, onEndBuilding, onLoad, onStartBuilding, pickArtifactManager, reload, run, save, setDescription, setDisplayName, setQueueId, setResult, submit, toString, updateSymlinks, writeLogTo, writeReplace, writeWholeLogToMethods inherited from class hudson.model.Actionable
addOrReplaceAction, doContextMenu, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, removeAction, removeActions, replaceAction, replaceActionsMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, 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, hasAnyPermission, hasPermission, hasPermission, hasPermission2Methods inherited from interface hudson.model.DescriptorByNameOwner
getDescriptorByNameMethods inherited from interface jenkins.model.HistoricalBuild
getBuildStatusIconClassName, getBuildStatusUrl, getTruncatedDescriptionMethods inherited from interface hudson.model.Queue.Executable
getConsoleUrl, getEstimatedDuration, toStringMethods inherited from interface jenkins.scm.RunWithSCM
hasParticipant
-
Field Details
-
debug
public static boolean debugExtra verbose debug switch.
-
-
Constructor Details
-
IvyModuleSetBuild
- Throws:
IOException
-
IvyModuleSetBuild
- Throws:
IOException
-
-
Method Details
-
getEnvironment
ExposesANT_OPTSto forked processes.When we fork Ant, we do so directly by executing Java, thus this environment variable is pointless (we have to tweak JVM launch option correctly instead, which can be seen in
IvyProcessFactory), but setting the environment variable explicitly is still useful in case this Ant forks other Ant processes via normal way. See HUDSON-3644.- Overrides:
getEnvironmentin classAbstractBuild<IvyModuleSet,IvyModuleSetBuild> - Throws:
IOExceptionInterruptedException
-
getResult
Displays the combined status of all modules.More precisely, this picks up the status of this build itself, plus all the latest builds of the modules that belongs to this build.
- Specified by:
getResultin interfaceHistoricalBuild- Overrides:
getResultin classRun<IvyModuleSet,IvyModuleSetBuild>
-
getModuleBuilds
Computes the module builds that correspond to this build.A module may be built multiple times (by the user action), so the value is a list.
-
getDynamic
public Object getDynamic(String token, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) - Overrides:
getDynamicin classRun<IvyModuleSet,IvyModuleSetBuild>
-
getModuleLastBuilds
Computes the latest module builds that correspond to this build. -
registerAsProjectAction
-
findModuleBuildActions
FindsActions from all the module builds that belong to thisIvyModuleSetBuild. One action per oneIvyModule, and newer ones take precedence over older ones. -
run
public void run()- Specified by:
runin interfaceQueue.Executable- Specified by:
runin interfaceRunnable- Specified by:
runin classAbstractBuild<IvyModuleSet,IvyModuleSetBuild>
-
getDownstreamRelationship
- Overrides:
getDownstreamRelationshipin classAbstractBuild<IvyModuleSet,IvyModuleSetBuild>
-
getParent
- Specified by:
getParentin interfaceQueue.Executable- Overrides:
getParentin classAbstractBuild<IvyModuleSet,IvyModuleSetBuild>
-