Package io.snyk.jenkins.tools
Class SnykInstallation
java.lang.Object
hudson.model.AbstractDescribableImpl<ToolInstallation>
hudson.tools.ToolInstallation
io.snyk.jenkins.tools.SnykInstallation
- All Implemented Interfaces:
ExtensionPoint,Describable<ToolInstallation>,EnvironmentSpecific<SnykInstallation>,NodeSpecific<SnykInstallation>,Serializable
public class SnykInstallation
extends ToolInstallation
implements EnvironmentSpecific<SnykInstallation>, NodeSpecific<SnykInstallation>
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.tools.ToolInstallation
ToolInstallation.ToolConverterNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
ConstructorsConstructorDescriptionSnykInstallation(String name, String home, List<? extends ToolProperty<?>> properties) -
Method Summary
Modifier and TypeMethodDescriptionforEnvironment(EnvVars environment) forNode(Node node, TaskListener log) getReportExecutable(Launcher launcher) getSnykExecutable(Launcher launcher) static SnykInstallationinstall(SnykContext context, String name) Methods inherited from class hudson.tools.ToolInstallation
all, buildEnvVars, getHome, getName, getProperties, readResolve, toString, translate, translate, translateFor, writeReplaceMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
SnykInstallation
@DataBoundConstructor public SnykInstallation(@NonNull String name, @Nullable String home, List<? extends ToolProperty<?>> properties)
-
-
Method Details
-
forEnvironment
- Specified by:
forEnvironmentin interfaceEnvironmentSpecific<SnykInstallation>
-
forNode
public SnykInstallation forNode(@NonNull Node node, TaskListener log) throws IOException, InterruptedException - Specified by:
forNodein interfaceNodeSpecific<SnykInstallation>- Throws:
IOExceptionInterruptedException
-
getSnykExecutable
public String getSnykExecutable(@NonNull Launcher launcher) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getReportExecutable
public String getReportExecutable(@NonNull Launcher launcher) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
install
public static SnykInstallation install(SnykContext context, String name) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-