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.ToolConverter
Nested 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 SnykInstallation
install
(SnykContext context, String name) Methods inherited from class hudson.tools.ToolInstallation
all, buildEnvVars, getHome, getName, getProperties, readResolve, toString, translate, translate, translateFor, writeReplace
Methods 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:
forEnvironment
in interfaceEnvironmentSpecific<SnykInstallation>
-
forNode
public SnykInstallation forNode(@Nonnull Node node, TaskListener log) throws IOException, InterruptedException - Specified by:
forNode
in interfaceNodeSpecific<SnykInstallation>
- Throws:
IOException
InterruptedException
-
getSnykExecutable
public String getSnykExecutable(@Nonnull Launcher launcher) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
getReportExecutable
public String getReportExecutable(@Nonnull Launcher launcher) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
install
public static SnykInstallation install(SnykContext context, String name) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-