hudson.ivy
Class IvyBuild

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<IvyModule,IvyBuild>
                      extended by hudson.ivy.IvyBuild
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<IvyBuild>, java.lang.Runnable

public class IvyBuild
extends AbstractIvyBuild<IvyModule,IvyBuild>

Run for IvyModule.

Author:
Timothy Bingaman

Nested Class Summary
static class IvyBuild.IvyModuleEnvironmentAction
           
 
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
          Set true to produce debug output.
 
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
IvyBuild(IvyModule job)
           
IvyBuild(IvyModule job, java.util.Calendar timestamp)
           
IvyBuild(IvyModule project, java.io.File buildDir)
           
 
Method Summary
 hudson.scm.ChangeLogSet<? extends hudson.scm.ChangeLogSet.Entry> getChangeSet()
           
 java.lang.String getDisplayName()
           
 IvyModuleSetBuild getModuleSetBuild()
          Gets the "governing" IvyModuleSet that has set the workspace for this build.
 IvyModule getParent()
           
 IvyModuleSetBuild getParentBuild()
          Gets the IvyModuleSetBuild that has the same build number.
 java.lang.String getUpUrl()
           
 boolean hasChangeSetComputed()
          We always get the changeset from IvyModuleSetBuild.
 void registerAsProjectAction(IvyReporter reporter)
           
 void run()
           
protected  void setWorkspace(hudson.FilePath path)
          Backdoor for IvyModuleSetBuild to assign workspaces for modules.
 
Methods inherited from class hudson.ivy.AbstractIvyBuild
scheduleDownstreamBuilds
 
Methods inherited from class hudson.model.AbstractBuild
delete, doStop, due, getBuildVariableResolver, getBuildVariables, getBuiltOn, getBuiltOnStr, getCulprits, getDependencyChanges, getDownstreamBuilds, getDownstreamBuilds, getDownstreamRelationship, getEnvironment, getHudsonVersion, getModuleRoot, getModuleRoots, getProject, getTestResultAction, getTransitiveUpstreamBuilds, getUpstreamBuilds, getUpstreamRelationship, getUpstreamRelationshipBuild, getWhyKeepLog, getWorkspace, hasParticipant
 
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, getDuration, getDurationString, getDynamic, getEnvironment, getEnvVars, getExecutor, getExternalizableId, getFullDisplayName, getHasArtifacts, getIconColor, getId, getIDFormatter, getLog, getLog, getLogFile, getLogInputStream, getLogReader, getLogText, getNextBuild, getNumber, getPreviousBuild, getPreviousBuildInProgress, getPreviousBuiltBuild, getPreviousCompletedBuild, getPreviousFailedBuild, getPreviousNotFailedBuild, getResult, 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, wait, wait, wait
 
Methods inherited from interface hudson.model.Queue.Executable
toString
 

Field Detail

debug

public static boolean debug
Set true to produce debug output.

Constructor Detail

IvyBuild

public IvyBuild(IvyModule job)
         throws java.io.IOException
Throws:
java.io.IOException

IvyBuild

public IvyBuild(IvyModule job,
                java.util.Calendar timestamp)

IvyBuild

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

getUpUrl

public java.lang.String getUpUrl()
Overrides:
getUpUrl in class hudson.model.AbstractBuild<IvyModule,IvyBuild>

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.ModelObject
Overrides:
getDisplayName in class hudson.model.Run<IvyModule,IvyBuild>

getParentBuild

public IvyModuleSetBuild getParentBuild()
Gets the IvyModuleSetBuild that has the same build number.

Returns:
null if no such build exists, which happens when the module build is manually triggered.
See Also:
getModuleSetBuild()

getModuleSetBuild

public IvyModuleSetBuild getModuleSetBuild()
Gets the "governing" IvyModuleSet that has set the workspace for this build.

Returns:
null if no such build exists, which happens if the build is manually removed.
See Also:
getParentBuild()

getChangeSet

public hudson.scm.ChangeLogSet<? extends hudson.scm.ChangeLogSet.Entry> getChangeSet()
Overrides:
getChangeSet in class hudson.model.AbstractBuild<IvyModule,IvyBuild>

hasChangeSetComputed

public boolean hasChangeSetComputed()
We always get the changeset from IvyModuleSetBuild.

Overrides:
hasChangeSetComputed in class hudson.model.AbstractBuild<IvyModule,IvyBuild>

registerAsProjectAction

public void registerAsProjectAction(IvyReporter reporter)

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<IvyModule,IvyBuild>

setWorkspace

protected void setWorkspace(hudson.FilePath path)
Backdoor for IvyModuleSetBuild to assign workspaces for modules.

Overrides:
setWorkspace in class hudson.model.AbstractBuild<IvyModule,IvyBuild>

getParent

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


Copyright © 2010. All Rights Reserved.