Package hudson.plugins.sonar.utils
Class BuilderUtils
java.lang.Object
hudson.plugins.sonar.utils.BuilderUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ToolInstallation & EnvironmentSpecific<T> & NodeSpecific<T>>
TgetBuildTool
(T tool, EnvVars env, TaskListener listener, FilePath workspace) static EnvVars
getEnvAndBuildVars
(Run<?, ?> run, TaskListener listener) Get environment vars of the run, with all values overridden by build varsstatic FilePath
getModuleRoot
(Run<?, ?> run, FilePath workspace)
-
Method Details
-
getBuildTool
@CheckForNull public static <T extends ToolInstallation & EnvironmentSpecific<T> & NodeSpecific<T>> T getBuildTool(@Nullable T tool, EnvVars env, TaskListener listener, FilePath workspace) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
getEnvAndBuildVars
public static EnvVars getEnvAndBuildVars(Run<?, ?> run, TaskListener listener) throws IOException, InterruptedExceptionGet environment vars of the run, with all values overridden by build vars- Throws:
IOException
InterruptedException
-
getModuleRoot
-