public class MavenBuild extends AbstractMavenBuild<MavenModule,MavenBuild>
Run for MavenModule.| Modifier and Type | Class and Description |
|---|---|
class |
MavenBuild.ProxyImpl2 |
hudson.model.AbstractBuild.AbstractBuildExecution, hudson.model.AbstractBuild.AbstractRunner, hudson.model.AbstractBuild.DependencyChangehudson.model.Run.Artifact, hudson.model.Run.ArtifactList, hudson.model.Run.KeepLogBuildBadge, hudson.model.Run.RedirectUp, hudson.model.Run.RunExecution, hudson.model.Run.Runner, hudson.model.Run.RunnerAbortedException, hudson.model.Run.StatusSummarizer, hudson.model.Run.Summary| Modifier and Type | Field and Description |
|---|---|
static boolean |
debug
Set true to produce debug output.
|
protected static ProcessCache |
mavenProcessCache |
| Constructor and Description |
|---|
MavenBuild(MavenModule job) |
MavenBuild(MavenModule job,
Calendar timestamp) |
MavenBuild(MavenModule project,
File buildDir) |
| Modifier and Type | Method and Description |
|---|---|
static ExecutedMojo.Cache |
createExecutedMojoCache() |
hudson.scm.ChangeLogSet<? extends hudson.scm.ChangeLogSet.Entry> |
getChangeSet() |
String |
getDisplayName() |
hudson.EnvVars |
getEnvironment(hudson.model.TaskListener log)
Exposes
MAVEN_OPTS to forked processes. |
List<ExecutedMojo> |
getExecutedMojos() |
MavenArtifactRecord |
getMavenArtifacts()
Information about artifacts produced by Maven.
|
String |
getMavenOpts(hudson.model.TaskListener listener,
hudson.EnvVars envVars)
Obtains the fully resolved MAVEN_OPTS with all the tokens and variables expanded.
|
MavenModuleSetBuild |
getModuleSetBuild()
Gets the "governing"
MavenModuleSet that has set
the workspace for this build. |
MavenModule |
getParent() |
MavenModuleSetBuild |
getParentBuild()
Gets the
MavenModuleSetBuild that has the same build number. |
List<MavenProjectActionBuilder> |
getProjectActionBuilders() |
hudson.model.AbstractBuild<?,?> |
getRootBuild()
The same as
getParentBuild() except that returns itself when no parent. |
String |
getUpUrl() |
String |
getWhyKeepLog()
If the parent
MavenModuleSetBuild is kept, keep this record, too. |
boolean |
hasChangeSetComputed()
We always get the changeset from
MavenModuleSetBuild. |
void |
registerAsProjectAction(MavenProjectActionBuilder builder) |
void |
registerAsProjectAction(MavenReporter reporter) |
void |
run() |
protected void |
setBuiltOnStr(String builtOn) |
protected void |
setWorkspace(hudson.FilePath path)
Backdoor for
MavenModuleSetBuild to assign workspaces for modules. |
expandTokensaddAction, createReference, doStop, doStop, dropLinks, due, getAggregatedTestResultAction, getBuildFingerprints, getBuildVariableResolver, getBuildVariables, getBuiltOn, getBuiltOnStr, getChangeSets, getCulprits, getDependencyChanges, getDownstreamBuilds, getDownstreamBuilds, getDownstreamRelationship, getEnvironments, getHudsonVersion, getModuleRoot, getModuleRoots, getNextBuild, getPersistentActions, getPreviousBuild, getProject, getRunMixIn, getSensitiveBuildVariables, getTestResultAction, getTransitiveUpstreamBuilds, getUpstreamBuilds, getUpstreamRelationship, getUpstreamRelationshipBuild, getWorkspace, hasParticipant_this, canToggleLogKeep, checkPermission, compareTo, delete, deleteArtifacts, doArtifact, doBuildNumber, doBuildStatus, doBuildTimestamp, doConfigSubmit, doConsoleText, doDoDelete, doProgressiveLog, doSubmitDescription, doToggleLogKeep, execute, fromExternalizableId, getAbsoluteUrl, getACL, getApi, getArtifactManager, getArtifacts, getArtifactsDir, getArtifactsUpTo, getBadgeActions, getBuildStatusIconClassName, getBuildStatusSummary, getBuildStatusUrl, getCause, getCauses, getCharacteristicEnvVars, getCharset, getDescription, getDescriptorByName, getDuration, getDurationString, getDynamic, getEnvironment, getEnvVars, getEstimatedDuration, getExecutor, getExternalizableId, getFullDisplayName, getHasArtifacts, getIconColor, getId, getLog, getLog, getLogFile, getLogInputStream, getLogReader, getLogText, getNumber, getOneOffExecutor, getPreviousBuildInProgress, getPreviousBuildsOverThreshold, getPreviousBuiltBuild, getPreviousCompletedBuild, getPreviousFailedBuild, getPreviousNotFailedBuild, getPreviousSuccessfulBuild, getQueueId, getResult, getRootDir, getSearchUrl, getStartTimeInMillis, getTime, getTimeInMillis, getTimestamp, getTimestampString, getTimestampString2, getTransientActions, getTruncatedDescription, getUrl, hasCustomDisplayName, hasntStartedYet, hasPermission, isBuilding, isInProgress, isKeepLog, isLogUpdated, keepLog, keepLog, makeSearchIndex, onEndBuilding, onLoad, onStartBuilding, pickArtifactManager, reload, run, save, setDescription, setDisplayName, setQueueId, setResult, submit, toString, updateSymlinks, writeLogTo, writeWholeLogTodoContextMenu, getAction, getAction, getActions, getActions, getAllActions, replaceActiongetSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendErrorprotected static final ProcessCache mavenProcessCache
public static boolean debug
public MavenBuild(MavenModule job) throws IOException
IOExceptionpublic MavenBuild(MavenModule job, Calendar timestamp)
public MavenBuild(MavenModule project, File buildDir) throws IOException
IOExceptionpublic String getUpUrl()
getUpUrl in class hudson.model.AbstractBuild<MavenModule,MavenBuild>public String getDisplayName()
getDisplayName in interface hudson.model.ModelObjectgetDisplayName in class hudson.model.Run<MavenModule,MavenBuild>@CheckForNull public MavenModuleSetBuild getParentBuild()
MavenModuleSetBuild that has the same build number.getModuleSetBuild()public hudson.model.AbstractBuild<?,?> getRootBuild()
getParentBuild() except that returns itself when no parent.getRootBuild in class hudson.model.AbstractBuild<MavenModule,MavenBuild>@CheckForNull public MavenModuleSetBuild getModuleSetBuild()
MavenModuleSet that has set
the workspace for this build.getParentBuild()public hudson.scm.ChangeLogSet<? extends hudson.scm.ChangeLogSet.Entry> getChangeSet()
getChangeSet in class hudson.model.AbstractBuild<MavenModule,MavenBuild>public boolean hasChangeSetComputed()
MavenModuleSetBuild.hasChangeSetComputed in class hudson.model.AbstractBuild<MavenModule,MavenBuild>@Exported public MavenArtifactRecord getMavenArtifacts()
public hudson.EnvVars getEnvironment(hudson.model.TaskListener log)
throws IOException,
InterruptedException
MAVEN_OPTS to forked processes.
See MavenModuleSetBuild.getEnvironment(TaskListener) for discussion.
getEnvironment in class AbstractMavenBuild<MavenModule,MavenBuild>IOExceptionInterruptedExceptionpublic void registerAsProjectAction(MavenReporter reporter)
public void registerAsProjectAction(MavenProjectActionBuilder builder)
public List<MavenProjectActionBuilder> getProjectActionBuilders()
public List<ExecutedMojo> getExecutedMojos()
public void run()
run in interface hudson.model.Queue.Executablerun in interface Runnablerun in class hudson.model.AbstractBuild<MavenModule,MavenBuild>public String getWhyKeepLog()
MavenModuleSetBuild is kept, keep this record, too.getWhyKeepLog in class hudson.model.AbstractBuild<MavenModule,MavenBuild>public static ExecutedMojo.Cache createExecutedMojoCache()
protected void setWorkspace(hudson.FilePath path)
MavenModuleSetBuild to assign workspaces for modules.setWorkspace in class hudson.model.AbstractBuild<MavenModule,MavenBuild>public MavenModule getParent()
getParent in interface hudson.model.Queue.ExecutablegetParent in class hudson.model.AbstractBuild<MavenModule,MavenBuild>protected void setBuiltOnStr(String builtOn)
setBuiltOnStr in class hudson.model.AbstractBuild<MavenModule,MavenBuild>public String getMavenOpts(hudson.model.TaskListener listener, hudson.EnvVars envVars)
AbstractMavenBuildgetMavenOpts 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.MavenModuleSet.getMavenOpts()Copyright © 2016–2017. All rights reserved.