Package hudson.plugins.sonar
Class SonarPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
hudson.plugins.sonar.SonarPublisher
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
Old fields should be left so that old config data can be read in, but
they should be deprecated and transient so that they won't show up in XML
when writing back
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Optional because Maven plugin might not be available.Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
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 interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorDescriptionSonarPublisher
(String installationName, String branch, TriggersConfig triggers, String jobAdditionalProperties, String mavenOpts, String mavenInstallationName, String rootPom, String jdk, SettingsProvider settings, GlobalSettingsProvider globalSettings, boolean usePrivateRepository) -
Method Summary
Modifier and TypeMethodDescriptionSee sonar.branch option.Deprecated.since 2.2hudson.maven.MavenModuleSet
getMavenProject
(AbstractBuild<?, ?> build) getProjectAction
(AbstractProject<?, ?> project) Root POM.static boolean
isMavenBuilder
(AbstractProject<?, ?> currentProject) boolean
boolean
boolean
perform
(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) void
void
setInstallationName
(String installationName) void
setJdkName
(String jdk) void
setJobAdditionalProperties
(String jobAdditionalProperties) boolean
Methods inherited from class hudson.tasks.Notifier
getDescriptor
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectActions, perform, prebuild
-
Constructor Details
-
SonarPublisher
@DataBoundConstructor public SonarPublisher(String installationName, String branch, TriggersConfig triggers, String jobAdditionalProperties, String mavenOpts, String mavenInstallationName, String rootPom, String jdk, @Nullable SettingsProvider settings, @Nullable GlobalSettingsProvider globalSettings, boolean usePrivateRepository)
-
-
Method Details
-
readResolve
-
getJdkName
-
setJdkName
-
getInstallationName
- Returns:
- name of
SonarInstallation
-
setInstallationName
-
getMavenOpts
- Returns:
- MAVEN_OPTS
-
getJobAdditionalProperties
- Returns:
- additional Maven options like "-Pprofile" and "-Dname=value"
-
setJobAdditionalProperties
-
isUseGlobalTriggers
public boolean isUseGlobalTriggers()- Returns:
- true, if we should use triggers from
SonarInstallation
-
isUseLocalTriggers
public boolean isUseLocalTriggers() -
getBranch
See sonar.branch option.- Returns:
- branch
- Since:
- 1.4
-
setBranch
-
getLanguage
Deprecated.since 2.2 -
getTriggers
- Returns:
- triggers configuration
-
getMavenInstallationName
- Returns:
- name of
Maven.MavenInstallation
-
getRootPom
Root POM. Should be applied only for free-style projects.- Returns:
- Root POM
-
isMavenBuilder
-
getInstallation
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
IOException
InterruptedException
-
getMavenProject
-
getProjectAction
- Specified by:
getProjectAction
in interfaceBuildStep
- Overrides:
getProjectAction
in classBuildStepCompatibilityLayer
-
getRequiredMonitorService
-
getSettings
- Since:
- 2.1
-
getGlobalSettings
- Since:
- 2.1
-
usesPrivateRepository
public boolean usesPrivateRepository()
-