|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.Actionable
hudson.model.Run<P,R>
hudson.model.AbstractBuild<P,B>
hudson.maven.AbstractMavenBuild<MavenModuleSet,MavenModuleSetBuild>
hudson.maven.MavenModuleSetBuild
public class MavenModuleSetBuild
Build for MavenModuleSet.
A "build" of MavenModuleSet consists of:
MavenBuilds are done
on this.
| Nested Class Summary | |
|---|---|
static class |
MavenModuleSetBuild.SimpleTransferListener
will log in the TaskListener when transferFailed and transferSucceeded |
| Nested classes/interfaces inherited from class hudson.model.AbstractBuild |
|---|
AbstractBuild.AbstractBuildExecution, AbstractBuild.AbstractRunner, AbstractBuild.DependencyChange |
| Nested classes/interfaces inherited from class hudson.model.Run |
|---|
Run.Artifact, Run.ArtifactList, Run.KeepLogBuildBadge, Run.RedirectUp, Run.RunExecution, Run.Runner, Run.RunnerAbortedException, Run.Summary |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu |
|---|
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.MenuItem |
| Field Summary | |
|---|---|
static boolean |
debug
Extra verbose debug switch. |
| Fields inherited from class hudson.model.AbstractBuild |
|---|
buildEnvironments |
| 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 |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
MavenModuleSetBuild(MavenModuleSet job)
|
|
MavenModuleSetBuild(MavenModuleSet project,
File buildDir)
|
|
| Method Summary | ||
|---|---|---|
void |
delete()
Deletes this build and its entire log |
|
|
findModuleBuildActions(Class<T> action)
Finds Actions from all the module builds that belong to this
MavenModuleSetBuild. |
|
Fingerprint.RangeSet |
getDownstreamRelationship(AbstractProject that)
Gets the dependency relationship from this build (as the source) and that project (as the sink.) |
|
Object |
getDynamic(String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
|
|
EnvVars |
getEnvironment(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(TaskListener listener,
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()
The project this build is for. |
|
Result |
getResult()
Displays the combined status of all modules. |
|
protected void |
onLoad()
Called after the build is loaded and the object is added to the build list. |
|
void |
registerAsProjectAction(MavenReporter reporter)
|
|
void |
run()
Invoked by Executor to performs a build. |
|
void |
setMavenVersionUsed(String mavenVersionUsed)
|
|
| Methods inherited from class hudson.maven.AbstractMavenBuild |
|---|
expandTokens |
| Methods inherited from class hudson.model.Actionable |
|---|
doContextMenu, 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 |
|---|
public static boolean debug
| Constructor Detail |
|---|
public MavenModuleSetBuild(MavenModuleSet job)
throws IOException
IOException
public MavenModuleSetBuild(MavenModuleSet project,
File buildDir)
throws IOException
IOException| Method Detail |
|---|
protected void onLoad()
Run
onLoad in class Run<MavenModuleSet,MavenModuleSetBuild>
public EnvVars getEnvironment(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>null.
IOException
InterruptedExceptionpublic 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 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 Queue.ExecutablegetEstimatedDuration in class Run<MavenModuleSet,MavenModuleSetBuild>@Exported public String getMavenVersionUsed()
public void setMavenVersionUsed(String mavenVersionUsed)
throws IOException
IOException
public void delete()
throws IOException
Run
delete in class Run<MavenModuleSet,MavenModuleSetBuild>IOException - if we fail to delete.
public Object getDynamic(String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
getDynamic in class Run<MavenModuleSet,MavenModuleSetBuild>@Exported public MavenAggregatedArtifactRecord getMavenArtifacts()
public Map<MavenModule,MavenBuild> getModuleLastBuilds()
public void registerAsProjectAction(MavenReporter reporter)
public <T extends 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()
AbstractBuildExecutor to performs a build.
run in interface Queue.Executablerun in interface Runnablerun in class AbstractBuild<MavenModuleSet,MavenModuleSetBuild>public Fingerprint.RangeSet getDownstreamRelationship(AbstractProject that)
AbstractBuild
getDownstreamRelationship in class AbstractBuild<MavenModuleSet,MavenModuleSetBuild>Fingerprinter.FingerprintAction), but it'll never be null.
public String getMavenOpts(TaskListener listener,
EnvVars envVars)
AbstractMavenBuild
getMavenOpts 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()public MavenModuleSet getParent()
Run
getParent in interface Queue.ExecutablegetParent in class Run<MavenModuleSet,MavenModuleSetBuild>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||