public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,MavenModuleSetBuild>
Build for MavenModuleSet.
A "build" of MavenModuleSet consists of:
MavenBuilds are done
on this.| Modifier and Type | Class and Description |
|---|---|
static class |
MavenModuleSetBuild.SimpleTransferListener
will log in the
TaskListener when transferFailed and transferSucceeded |
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
Extra verbose debug switch.
|
| Constructor and Description |
|---|
MavenModuleSetBuild(MavenModuleSet job) |
MavenModuleSetBuild(MavenModuleSet project,
File buildDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
void |
deleteArtifacts() |
<T extends hudson.model.Action> |
findModuleBuildActions(Class<T> action)
Finds
Actions from all the module builds that belong to this
MavenModuleSetBuild. |
hudson.model.Fingerprint.RangeSet |
getDownstreamRelationship(hudson.model.AbstractProject that) |
Object |
getDynamic(String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
hudson.EnvVars |
getEnvironment(hudson.model.TaskListener log)
Exposes
MAVEN_OPTS to forked processes. |
long |
getEstimatedDuration()
Returns the estimated duration for this builds.
|
MavenAggregatedArtifactRecord |
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.
|
String |
getMavenVersionUsed()
Gets the version of Maven used for build.
|
Map<MavenModule,List<MavenBuild>> |
getModuleBuilds()
Computes the module builds that correspond to this build.
|
Map<MavenModule,MavenBuild> |
getModuleLastBuilds()
Computes the latest module builds that correspond to this build.
|
MavenModuleSet |
getParent() |
hudson.model.Result |
getResult()
Displays the combined status of all modules.
|
protected Boolean |
isRelease()
Check if the current build is a release or not.
|
protected void |
onLoad() |
void |
registerAsProjectAction(MavenReporter reporter) |
void |
run() |
void |
setMavenVersionUsed(String mavenVersionUsed) |
expandTokensaddAction, createReference, doStop, doStop, dropLinks, due, getAggregatedTestResultAction, getBuildFingerprints, getBuildVariableResolver, getBuildVariables, getBuiltOn, getBuiltOnStr, getChangeSet, getChangeSets, getCulprits, getDependencyChanges, getDownstreamBuilds, getDownstreamBuilds, getEnvironments, getHudsonVersion, getModuleRoot, getModuleRoots, getNextBuild, getPersistentActions, getPreviousBuild, getProject, getRootBuild, getRunMixIn, getSensitiveBuildVariables, getTestResultAction, getTransitiveUpstreamBuilds, getUpstreamBuilds, getUpstreamRelationship, getUpstreamRelationshipBuild, getUpUrl, getWhyKeepLog, getWorkspace, hasChangeSetComputed, hasParticipant, setBuiltOnStr, setWorkspace_this, canToggleLogKeep, checkPermission, compareTo, 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, getDisplayName, getDuration, getDurationString, getEnvironment, getEnvVars, getExecutor, getExternalizableId, getFullDisplayName, getHasArtifacts, getIconColor, getId, getLog, getLog, getLogFile, getLogInputStream, getLogReader, getLogText, getNumber, getOneOffExecutor, getPreviousBuildInProgress, getPreviousBuildsOverThreshold, getPreviousBuiltBuild, getPreviousCompletedBuild, getPreviousFailedBuild, getPreviousNotFailedBuild, getPreviousSuccessfulBuild, getQueueId, getRootDir, getSearchUrl, getStartTimeInMillis, getTime, getTimeInMillis, getTimestamp, getTimestampString, getTimestampString2, getTransientActions, getTruncatedDescription, getUrl, hasCustomDisplayName, hasntStartedYet, hasPermission, isBuilding, isInProgress, isKeepLog, isLogUpdated, keepLog, keepLog, makeSearchIndex, onEndBuilding, 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, sendErrorpublic MavenModuleSetBuild(MavenModuleSet job) throws IOException
IOExceptionpublic MavenModuleSetBuild(MavenModuleSet project, File buildDir) throws IOException
IOExceptionprotected void onLoad()
onLoad in class hudson.model.Run<MavenModuleSet,MavenModuleSetBuild>public hudson.EnvVars getEnvironment(hudson.model.TaskListener log)
throws IOException,
InterruptedException
MAVEN_OPTS to forked processes.
When we fork Maven, 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
MavenProcessFactory), but setting the environment variable explicitly is still
useful in case this Maven forks other Maven processes via normal way. See HUDSON-3644.getEnvironment in class AbstractMavenBuild<MavenModuleSet,MavenModuleSetBuild>IOExceptionInterruptedExceptionpublic hudson.model.Result getResult()
More precisely, this picks up the status of this build itself, plus all the latest builds of the modules that belongs to this build.
getResult in class hudson.model.Run<MavenModuleSet,MavenModuleSetBuild>public Map<MavenModule,List<MavenBuild>> getModuleBuilds()
A module may be built multiple times (by the user action), so the value is a list.
public long getEstimatedDuration()
getEstimatedDuration in interface hudson.model.Queue.ExecutablegetEstimatedDuration in class hudson.model.Run<MavenModuleSet,MavenModuleSetBuild>@Exported public String getMavenVersionUsed()
public void setMavenVersionUsed(String mavenVersionUsed) throws IOException
IOExceptionpublic void delete()
throws IOException
delete in class hudson.model.Run<MavenModuleSet,MavenModuleSetBuild>IOExceptionpublic void deleteArtifacts()
throws IOException
deleteArtifacts in class hudson.model.Run<MavenModuleSet,MavenModuleSetBuild>IOExceptionpublic Object getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
getDynamic in class hudson.model.Run<MavenModuleSet,MavenModuleSetBuild>@Exported public MavenAggregatedArtifactRecord getMavenArtifacts()
public Map<MavenModule,MavenBuild> getModuleLastBuilds()
public void registerAsProjectAction(MavenReporter reporter)
public <T extends hudson.model.Action> List<T> findModuleBuildActions(Class<T> action)
Actions from all the module builds that belong to this
MavenModuleSetBuild. One action per one MavenModule,
and newer ones take precedence over older ones.public void run()
run in interface hudson.model.Queue.Executablerun in interface Runnablerun in class hudson.model.AbstractBuild<MavenModuleSet,MavenModuleSetBuild>public hudson.model.Fingerprint.RangeSet getDownstreamRelationship(hudson.model.AbstractProject that)
getDownstreamRelationship in class hudson.model.AbstractBuild<MavenModuleSet,MavenModuleSetBuild>public String getMavenOpts(hudson.model.TaskListener listener, hudson.EnvVars envVars)
AbstractMavenBuildgetMavenOpts in class AbstractMavenBuild<MavenModuleSet,MavenModuleSetBuild>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()protected Boolean isRelease()
MavenModuleSetBuild is a releasepublic MavenModuleSet getParent()
getParent in interface hudson.model.Queue.ExecutablegetParent in class hudson.model.AbstractBuild<MavenModuleSet,MavenModuleSetBuild>Copyright © 2016–2017. All rights reserved.