Package hudson.plugins.sonar
Class AbstractMsBuildSQRunner
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
hudson.plugins.sonar.AbstractMsBuildSQRunner
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
- Direct Known Subclasses:
MsBuildSQRunnerBegin
,MsBuildSQRunnerEnd
-
Nested Class Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected String
getScannerPath
(MsBuildSQRunnerInstallation msBuildScanner, EnvVars env, Launcher launcher, TaskListener listener, FilePath workspace) protected static SonarInstallation
getSonarInstallation
(String instName, TaskListener listener) protected Boolean
isDotNetCoreTool
(String scannerPath) boolean
perform
(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) protected abstract void
perform
(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
Constructor Details
-
AbstractMsBuildSQRunner
public AbstractMsBuildSQRunner()
-
-
Method Details
-
getSonarInstallation
protected static SonarInstallation getSonarInstallation(String instName, TaskListener listener) throws AbortException - Throws:
AbortException
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-
perform
protected abstract void perform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException- Throws:
InterruptedException
IOException
-
getScannerPath
protected String getScannerPath(MsBuildSQRunnerInstallation msBuildScanner, EnvVars env, Launcher launcher, TaskListener listener, FilePath workspace) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
addDotNetCommand
-
isDotNetCoreTool
-