hudson.ivy
Class IvyModuleSetBuild

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.Actionable
          extended by hudson.model.Run<P,R>
              extended by hudson.model.AbstractBuild<P,B>
                  extended by hudson.ivy.AbstractIvyBuild<IvyModuleSet,IvyModuleSetBuild>
                      extended by hudson.ivy.IvyModuleSetBuild
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.DescriptorByNameOwner, hudson.model.ModelObject, hudson.model.PersistenceRoot, hudson.model.Queue.Executable, hudson.model.Saveable, hudson.search.SearchableModelObject, hudson.search.SearchItem, hudson.security.AccessControlled, java.lang.Comparable<IvyModuleSetBuild>, java.lang.Runnable

public class IvyModuleSetBuild
extends AbstractIvyBuild<IvyModuleSet,IvyModuleSetBuild>

Build for IvyModuleSet.

A "build" of IvyModuleSet consists of:

  1. Update the workspace.
  2. Parse ivy.xml files
  3. Trigger module builds.
This object remembers the changelog and what IvyBuilds are done on this.

Author:
Timothy Bingaman

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.ivy.AbstractIvyBuild
AbstractIvyBuild.ParameterizedUpstreamCause
 
Nested classes/interfaces inherited from class hudson.model.AbstractBuild
hudson.model.AbstractBuild.AbstractRunner, hudson.model.AbstractBuild.DependencyChange
 
Nested classes/interfaces inherited from class hudson.model.Run
hudson.model.Run.Artifact, hudson.model.Run.ArtifactList, hudson.model.Run.KeepLogBuildBadge, hudson.model.Run.RedirectUp, hudson.model.Run.Runner, hudson.model.Run.RunnerAbortedException, hudson.model.Run.Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static boolean debug
          Extra verbose debug switch.
 
Fields inherited from class hudson.model.AbstractBuild
buildEnvironments
 
Fields inherited from class hudson.model.Run
charset, DELETE, description, duration, FEED_ADAPTER, FEED_ADAPTER_LATEST, ID_FORMATTER, LIST_CUTOFF, nextBuild, number, ORDER_BY_DATE, PERMISSIONS, previousBuild, project, result, state, timestamp, TREE_CUTOFF, UPDATE, XSTREAM
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
IvyModuleSetBuild(IvyModuleSet job)
           
IvyModuleSetBuild(IvyModuleSet project, java.io.File buildDir)
           
 
Method Summary
<T extends hudson.model.Action>
java.util.List<T>
findModuleBuildActions(java.lang.Class<T> action)
          Finds Actions from all the module builds that belong to this IvyModuleSetBuild.
 hudson.model.Fingerprint.RangeSet getDownstreamRelationship(hudson.model.AbstractProject that)
           
 java.lang.Object getDynamic(java.lang.String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 hudson.EnvVars getEnvironment(hudson.model.TaskListener log)
          Exposes ANT_OPTS to forked processes.
 java.util.Map<IvyModule,java.util.List<IvyBuild>> getModuleBuilds()
          Computes the module builds that correspond to this build.
 java.util.Map<IvyModule,IvyBuild> getModuleLastBuilds()
          Computes the latest module builds that correspond to this build.
 IvyModuleSet getParent()
           
 hudson.model.Result getResult()
          Displays the combined status of all modules.
 void registerAsProjectAction(IvyReporter reporter)
           
 void run()
           
 
Methods inherited from class hudson.ivy.AbstractIvyBuild
scheduleDownstreamBuilds
 
Methods inherited from class hudson.model.AbstractBuild
delete, doStop, due, getBuildVariableResolver, getBuildVariables, getBuiltOn, getBuiltOnStr, getChangeSet, getCulprits, getDependencyChanges, getDownstreamBuilds, getDownstreamBuilds, getHudsonVersion, getModuleRoot, getModuleRoots, getProject, getTestResultAction, getTransitiveUpstreamBuilds, getUpstreamBuilds, getUpstreamRelationship, getUpstreamRelationshipBuild, getUpUrl, getWhyKeepLog, getWorkspace, hasChangeSetComputed, hasParticipant, setWorkspace
 
Methods inherited from class hudson.model.Run
checkPermission, compareTo, deleteArtifacts, doArtifact, doBuildNumber, doBuildStatus, doBuildTimestamp, doConsoleText, doDoDelete, doProgressiveLog, doSubmitDescription, doToggleLogKeep, fromExternalizableId, getAbsoluteUrl, getACL, getApi, getArtifacts, getArtifactsDir, getArtifactsUpTo, getBadgeActions, getBuildStatusSummary, getBuildStatusUrl, getCauses, getCharacteristicEnvVars, getCharset, getDescription, getDescriptorByName, getDisplayName, getDuration, getDurationString, getEnvironment, getEnvVars, getExecutor, getExternalizableId, getFullDisplayName, getHasArtifacts, getIconColor, getId, getIDFormatter, getLog, getLog, getLogFile, getLogInputStream, getLogReader, getLogText, getNextBuild, getNumber, getPreviousBuild, getPreviousBuildInProgress, getPreviousBuiltBuild, getPreviousCompletedBuild, getPreviousFailedBuild, getPreviousNotFailedBuild, getRootDir, getSearchUrl, getTime, getTimeInMillis, getTimestamp, getTimestampString, getTimestampString2, getTruncatedDescription, getUrl, hasntStartedYet, hasPermission, isBuilding, isKeepLog, isLogUpdated, keepLog, keepLog, makeSearchIndex, onEndBuilding, onStartBuilding, run, save, setDescription, setResult, toString, writeLogTo
 
Methods inherited from class hudson.model.Actionable
addAction, getAction, getAction, getActions, getActions
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.model.Queue.Executable
toString
 

Field Detail

debug

public static boolean debug
Extra verbose debug switch.

Constructor Detail

IvyModuleSetBuild

public IvyModuleSetBuild(IvyModuleSet job)
                  throws java.io.IOException
Throws:
java.io.IOException

IvyModuleSetBuild

public IvyModuleSetBuild(IvyModuleSet project,
                         java.io.File buildDir)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getEnvironment

public hudson.EnvVars getEnvironment(hudson.model.TaskListener log)
                              throws java.io.IOException,
                                     java.lang.InterruptedException
Exposes ANT_OPTS to 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:
getEnvironment in class hudson.model.AbstractBuild<IvyModuleSet,IvyModuleSetBuild>
Throws:
java.io.IOException
java.lang.InterruptedException

getResult

public hudson.model.Result 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.

Overrides:
getResult in class hudson.model.Run<IvyModuleSet,IvyModuleSetBuild>

getModuleBuilds

public java.util.Map<IvyModule,java.util.List<IvyBuild>> 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 java.lang.Object getDynamic(java.lang.String token,
                                   org.kohsuke.stapler.StaplerRequest req,
                                   org.kohsuke.stapler.StaplerResponse rsp)
Overrides:
getDynamic in class hudson.model.Run<IvyModuleSet,IvyModuleSetBuild>

getModuleLastBuilds

public java.util.Map<IvyModule,IvyBuild> getModuleLastBuilds()
Computes the latest module builds that correspond to this build.


registerAsProjectAction

public void registerAsProjectAction(IvyReporter reporter)

findModuleBuildActions

public <T extends hudson.model.Action> java.util.List<T> findModuleBuildActions(java.lang.Class<T> action)
Finds Actions from all the module builds that belong to this IvyModuleSetBuild. One action per one IvyModule, and newer ones take precedence over older ones.


run

public void run()
Specified by:
run in interface hudson.model.Queue.Executable
Specified by:
run in interface java.lang.Runnable
Specified by:
run in class hudson.model.AbstractBuild<IvyModuleSet,IvyModuleSetBuild>

getDownstreamRelationship

public hudson.model.Fingerprint.RangeSet getDownstreamRelationship(hudson.model.AbstractProject that)
Overrides:
getDownstreamRelationship in class hudson.model.AbstractBuild<IvyModuleSet,IvyModuleSetBuild>

getParent

public IvyModuleSet getParent()
Specified by:
getParent in interface hudson.model.Queue.Executable
Overrides:
getParent in class hudson.model.AbstractBuild<IvyModuleSet,IvyModuleSetBuild>


Copyright © 2010. All Rights Reserved.