hudson.maven
Class MavenBuild
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Actionable
hudson.model.Run<P,R>
hudson.model.AbstractBuild<P,B>
hudson.maven.AbstractMavenBuild<MavenModule,MavenBuild>
hudson.maven.MavenBuild
- All Implemented Interfaces:
- ExtensionPoint, DescriptorByNameOwner, ModelObject, PersistenceRoot, Queue.Executable, Saveable, SearchableModelObject, SearchItem, AccessControlled, Comparable<MavenBuild>, Runnable, ModelObjectWithContextMenu, OnMaster
public class MavenBuild
- extends AbstractMavenBuild<MavenModule,MavenBuild>
Run for MavenModule.
- Author:
- Kohsuke Kawaguchi
| Fields inherited from class hudson.model.Run |
ARTIFACTS, charset, DELETE, description, duration, FEED_ADAPTER, FEED_ADAPTER_LATEST, ID_FORMATTER, LIST_CUTOFF, number, ORDER_BY_DATE, PERMISSIONS, project, result, state, timestamp, TREE_CUTOFF, UPDATE, XSTREAM, XSTREAM2 |
| Methods inherited from class hudson.model.AbstractBuild |
doStop, doStop, due, getAggregatedTestResultAction, getBuildFingerprints, getBuildVariableResolver, getBuildVariables, getBuiltOn, getBuiltOnStr, getCulprits, getDependencyChanges, getDownstreamBuilds, getDownstreamBuilds, getDownstreamRelationship, getEnvironments, getHudsonVersion, getModuleRoot, getModuleRoots, getNextBuild, getPersistentActions, getPreviousBuild, getProject, getSensitiveBuildVariables, getTestResultAction, getTransitiveUpstreamBuilds, getUpstreamBuilds, getUpstreamRelationship, getUpstreamRelationshipBuild, getWorkspace, hasParticipant |
| Methods inherited from class hudson.model.Run |
_this, addAction, checkPermission, compareTo, delete, deleteArtifacts, doArtifact, doBuildNumber, doBuildStatus, doBuildTimestamp, doConfigSubmit, doConsoleText, doDoDelete, doProgressiveLog, doSubmitDescription, doToggleLogKeep, execute, fromExternalizableId, getAbsoluteUrl, getACL, getApi, getArtifacts, getArtifactsDir, getArtifactsUpTo, getBadgeActions, getBuildStatusSummary, getBuildStatusUrl, getCause, getCauses, getCharacteristicEnvVars, getCharset, getDescription, getDescriptorByName, getDuration, getDurationString, getDynamic, getEnvironment, getEnvVars, getEstimatedDuration, getExecutor, getExternalizableId, getFullDisplayName, getHasArtifacts, getIconColor, getId, getIDFormatter, getLog, getLog, getLogFile, getLogInputStream, getLogReader, getLogText, getNumber, getOneOffExecutor, getPreviousBuildInProgress, getPreviousBuildsOverThreshold, getPreviousBuiltBuild, getPreviousCompletedBuild, getPreviousFailedBuild, getPreviousNotFailedBuild, getPreviousSuccessfulBuild, getResult, getRootDir, getSearchUrl, getStartTimeInMillis, getTime, getTimeInMillis, getTimestamp, getTimestampString, getTimestampString2, getTransientActions, getTruncatedDescription, getUrl, hasCustomDisplayName, hasntStartedYet, hasPermission, isBuilding, isKeepLog, isLogUpdated, keepLog, keepLog, makeSearchIndex, onEndBuilding, onLoad, onStartBuilding, reload, run, save, setDescription, setDisplayName, setResult, submit, toString, writeLogTo, writeWholeLogTo |
mavenProcessCache
protected static final ProcessCache mavenProcessCache
debug
public static boolean debug
- Set true to produce debug output.
MavenBuild
public MavenBuild(MavenModule job)
throws IOException
- Throws:
IOException
MavenBuild
public MavenBuild(MavenModule job,
Calendar timestamp)
MavenBuild
public MavenBuild(MavenModule project,
File buildDir)
throws IOException
- Throws:
IOException
getUpUrl
public String getUpUrl()
- Overrides:
getUpUrl in class AbstractBuild<MavenModule,MavenBuild>
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName in interface ModelObject- Overrides:
getDisplayName in class Run<MavenModule,MavenBuild>
getParentBuild
public MavenModuleSetBuild getParentBuild()
- Gets the
MavenModuleSetBuild 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()
getRootBuild
public AbstractBuild<?,?> getRootBuild()
- The same as
getParentBuild().
- Overrides:
getRootBuild in class AbstractBuild<MavenModule,MavenBuild>
getModuleSetBuild
public MavenModuleSetBuild getModuleSetBuild()
- Gets the "governing"
MavenModuleSet 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 ChangeLogSet<? extends ChangeLogSet.Entry> getChangeSet()
- Overrides:
getChangeSet in class AbstractBuild<MavenModule,MavenBuild>
hasChangeSetComputed
public boolean hasChangeSetComputed()
- We always get the changeset from
MavenModuleSetBuild.
- Overrides:
hasChangeSetComputed in class AbstractBuild<MavenModule,MavenBuild>
getMavenArtifacts
@Exported
public MavenArtifactRecord getMavenArtifacts()
- Information about artifacts produced by Maven.
getEnvironment
public EnvVars getEnvironment(TaskListener log)
throws IOException,
InterruptedException
- Exposes
MAVEN_OPTS to forked processes.
See MavenModuleSetBuild.getEnvironment(TaskListener) for discussion.
- Overrides:
getEnvironment in class AbstractMavenBuild<MavenModule,MavenBuild>
- Throws:
IOException
InterruptedException
registerAsProjectAction
public void registerAsProjectAction(MavenReporter reporter)
registerAsProjectAction
public void registerAsProjectAction(MavenProjectActionBuilder builder)
getProjectActionBuilders
public List<MavenProjectActionBuilder> getProjectActionBuilders()
getExecutedMojos
public List<ExecutedMojo> getExecutedMojos()
run
public void run()
- Specified by:
run in interface Queue.Executable- Specified by:
run in interface Runnable- Specified by:
run in class AbstractBuild<MavenModule,MavenBuild>
getWhyKeepLog
public String getWhyKeepLog()
- If the parent
MavenModuleSetBuild is kept, keep this record, too.
- Overrides:
getWhyKeepLog in class AbstractBuild<MavenModule,MavenBuild>
createExecutedMojoCache
public static ExecutedMojo.Cache createExecutedMojoCache()
setWorkspace
protected void setWorkspace(FilePath path)
- Backdoor for
MavenModuleSetBuild to assign workspaces for modules.
- Overrides:
setWorkspace in class AbstractBuild<MavenModule,MavenBuild>
getParent
public MavenModule getParent()
- Specified by:
getParent in interface Queue.Executable- Overrides:
getParent in class AbstractBuild<MavenModule,MavenBuild>
setBuiltOnStr
protected void setBuiltOnStr(String builtOn)
- Overrides:
setBuiltOnStr in class AbstractBuild<MavenModule,MavenBuild>
getMavenOpts
public String getMavenOpts(TaskListener listener,
EnvVars envVars)
- Description copied from class:
AbstractMavenBuild
- Obtains the fully resolved MAVEN_OPTS with all the tokens and variables expanded.
- Specified by:
getMavenOpts in class AbstractMavenBuild<MavenModule,MavenBuild>
envVars - Caller must pass in the environment variables obtained from AbstractMavenBuild.getEnvironment(TaskListener)
This method takes this as a parameter as opposed to recomputing it since the caller always have this handy.- See Also:
MavenModuleSet.getMavenOpts()
Copyright © 2004-2013. All Rights Reserved.