Package hudson.plugins.sonar.utils
Class SonarMaven
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
hudson.tasks.Maven
hudson.plugins.sonar.utils.SonarMaven
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
- Since:
- 1.3
- Author:
- Evgeny Mandrikov
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.tasks.Maven
Maven.DescriptorImpl, Maven.MavenInstallation, Maven.MavenInstaller, Maven.ProjectWithMaven
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.tasks.Maven
DESCRIPTOR, jvmOptions, mavenName, pom, properties, targets, usePrivateRepository
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorDescriptionSonarMaven
(String additionalProperties, String name, String pom, String jvmOptions, hudson.maven.local_repo.LocalRepositoryLocator locaRepository, SonarPublisher publisher, BuildListener listener, JDK jdk, SettingsProvider settings, GlobalSettingsProvider globalSettings) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
buildEnvVars
(EnvVars env, Maven.MavenInstallation mi) static boolean
executeMaven
(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener, String mavenName, String pom, SonarInstallation sonarInstallation, SonarPublisher sonarPublisher, JDK jdk, SettingsProvider settings, GlobalSettingsProvider globalSettings, boolean usesLocalRepository) protected void
wrapUpArguments
(ArgumentListBuilder args, String normalizedTarget, AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) Methods inherited from class hudson.tasks.Maven
getGlobalSettings, getMaven, getSettings, getTargets, isInjectBuildVariables, perform, setGlobalSettings, setSettings, setUsePrivateRepository, usesPrivateRepository
Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
Constructor Details
-
SonarMaven
public SonarMaven(String additionalProperties, String name, String pom, String jvmOptions, hudson.maven.local_repo.LocalRepositoryLocator locaRepository, SonarPublisher publisher, BuildListener listener, JDK jdk, SettingsProvider settings, GlobalSettingsProvider globalSettings)
-
-
Method Details
-
wrapUpArguments
protected void wrapUpArguments(ArgumentListBuilder args, String normalizedTarget, AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException- Overrides:
wrapUpArguments
in classMaven
- Throws:
IOException
InterruptedException
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<Builder>
- Overrides:
getDescriptor
in classMaven
-
executeMaven
public static boolean executeMaven(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener, String mavenName, String pom, SonarInstallation sonarInstallation, SonarPublisher sonarPublisher, JDK jdk, SettingsProvider settings, GlobalSettingsProvider globalSettings, boolean usesLocalRepository) throws IOException, InterruptedException- Throws:
IOException
InterruptedException
-
buildEnvVars
protected void buildEnvVars(EnvVars env, Maven.MavenInstallation mi) throws IOException, InterruptedException - Overrides:
buildEnvVars
in classMaven
- Throws:
IOException
InterruptedException
-