|
||||||||||
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<MavenModule,MavenBuild>
hudson.maven.MavenBuild
public class MavenBuild
Run
for MavenModule
.
Nested Class Summary | |
---|---|
class |
MavenBuild.ProxyImpl2
|
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
Set true to produce debug output. |
protected static ProcessCache |
mavenProcessCache
|
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 | |
---|---|
MavenBuild(MavenModule job)
|
|
MavenBuild(MavenModule job,
Calendar timestamp)
|
|
MavenBuild(MavenModule project,
File buildDir)
|
Method Summary | |
---|---|
static ExecutedMojo.Cache |
createExecutedMojoCache()
|
ChangeLogSet<? extends ChangeLogSet.Entry> |
getChangeSet()
Gets the changes incorporated into this build. |
String |
getDisplayName()
|
EnvVars |
getEnvironment(TaskListener log)
Exposes MAVEN_OPTS to forked processes. |
List<ExecutedMojo> |
getExecutedMojos()
|
MavenArtifactRecord |
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. |
MavenModuleSetBuild |
getModuleSetBuild()
Gets the "governing" MavenModuleSet that has set
the workspace for this build. |
MavenModule |
getParent()
The project this build is for. |
MavenModuleSetBuild |
getParentBuild()
Gets the MavenModuleSetBuild that has the same build number. |
List<MavenProjectActionBuilder> |
getProjectActionBuilders()
|
AbstractBuild<?,?> |
getRootBuild()
The same as getParentBuild() . |
String |
getUpUrl()
Used to render the side panel "Back to project" link. |
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()
Invoked by Executor to performs a build. |
protected void |
setBuiltOnStr(String builtOn)
Allows subtypes to set the value of AbstractBuild.builtOn . |
protected void |
setWorkspace(FilePath path)
Backdoor for MavenModuleSetBuild to assign workspaces for modules. |
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 |
---|
getEstimatedDuration, toString |
Field Detail |
---|
protected static final ProcessCache mavenProcessCache
public static boolean debug
Constructor Detail |
---|
public MavenBuild(MavenModule job) throws IOException
IOException
public MavenBuild(MavenModule job, Calendar timestamp)
public MavenBuild(MavenModule project, File buildDir) throws IOException
IOException
Method Detail |
---|
public String getUpUrl()
AbstractBuild
In a rare situation where a build can be reached from multiple paths, returning different URLs from this method based on situations might be desirable.
If you override this method, you'll most likely also want to override
Run.getDisplayName()
.
getUpUrl
in class AbstractBuild<MavenModule,MavenBuild>
public String getDisplayName()
getDisplayName
in interface ModelObject
getDisplayName
in class Run<MavenModule,MavenBuild>
@CheckForNull public MavenModuleSetBuild getParentBuild()
MavenModuleSetBuild
that has the same build number.
getModuleSetBuild()
public AbstractBuild<?,?> getRootBuild()
getParentBuild()
.
getRootBuild
in class AbstractBuild<MavenModule,MavenBuild>
AbstractProject.getRootProject()
@CheckForNull public MavenModuleSetBuild getModuleSetBuild()
MavenModuleSet
that has set
the workspace for this build.
getParentBuild()
public ChangeLogSet<? extends ChangeLogSet.Entry> getChangeSet()
AbstractBuild
getChangeSet
in class AbstractBuild<MavenModule,MavenBuild>
public boolean hasChangeSetComputed()
MavenModuleSetBuild
.
hasChangeSetComputed
in class AbstractBuild<MavenModule,MavenBuild>
@Exported public MavenArtifactRecord getMavenArtifacts()
public EnvVars getEnvironment(TaskListener log) throws IOException, InterruptedException
MAVEN_OPTS
to forked processes.
See MavenModuleSetBuild.getEnvironment(TaskListener)
for discussion.
getEnvironment
in class AbstractMavenBuild<MavenModule,MavenBuild>
null
.
IOException
InterruptedException
public void registerAsProjectAction(MavenReporter reporter)
public void registerAsProjectAction(MavenProjectActionBuilder builder)
public List<MavenProjectActionBuilder> getProjectActionBuilders()
public List<ExecutedMojo> getExecutedMojos()
public void run()
AbstractBuild
Executor
to performs a build.
run
in interface Queue.Executable
run
in interface Runnable
run
in class AbstractBuild<MavenModule,MavenBuild>
public String getWhyKeepLog()
MavenModuleSetBuild
is kept, keep this record, too.
getWhyKeepLog
in class AbstractBuild<MavenModule,MavenBuild>
public static ExecutedMojo.Cache createExecutedMojoCache()
protected void setWorkspace(FilePath path)
MavenModuleSetBuild
to assign workspaces for modules.
setWorkspace
in class AbstractBuild<MavenModule,MavenBuild>
public MavenModule getParent()
Run
getParent
in interface Queue.Executable
getParent
in class Run<MavenModule,MavenBuild>
protected void setBuiltOnStr(String builtOn)
AbstractBuild
AbstractBuild.builtOn
.
This is used for those implementations where an AbstractBuild
is made 'built' without
actually running its AbstractBuild.run()
method.
setBuiltOnStr
in class AbstractBuild<MavenModule,MavenBuild>
public String getMavenOpts(TaskListener listener, EnvVars envVars)
AbstractMavenBuild
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.MavenModuleSet.getMavenOpts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |