public interface MavenArgumentInterceptorAction
extends hudson.model.Action
| Modifier and Type | Method and Description |
|---|---|
String |
getGoalsAndOptions(MavenModuleSetBuild build)
Provides maven goals and options to start the build with.
|
hudson.util.ArgumentListBuilder |
intercept(hudson.util.ArgumentListBuilder mavenargs,
MavenModuleSetBuild build)
Change/add arguments to any needs.
|
String getGoalsAndOptions(MavenModuleSetBuild build)
This method will be called on one and only one action during a build. If there are two actions present in the build, the second will be ignored.
build - reference to the current build, might be used for some
calculations for the correct argumentsnull or empty. Variables will be expanded
by the caller.hudson.util.ArgumentListBuilder intercept(hudson.util.ArgumentListBuilder mavenargs,
MavenModuleSetBuild build)
-f /path/to/pom.xml or -B).
An easy example would be to add "-DskipTests" to skip the
test execution on request.
This method is called on all present MavenArgumentInterceptorAction during a build (kind of chaining, each action can add the arguments it thinks are missing).
mavenargs - the calculated default maven arguments (never
null).build - reference to the current build, might be used for some
calculations for the correct argumentsCopyright © 2016–2017. All rights reserved.