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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SnykInstallation.SnykInstallationDescriptor
-
Nested classes/interfaces inherited from class hudson.tools.ToolInstallation
ToolInstallation.ToolConverter
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description SnykInstallation(String name, String home, List<? extends ToolProperty<?>> properties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SnykInstallation
forEnvironment(EnvVars environment)
SnykInstallation
forNode(Node node, TaskListener log)
String
getReportExecutable(Launcher launcher)
String
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 Detail
-
SnykInstallation
@DataBoundConstructor public SnykInstallation(@Nonnull String name, @Nullable String home, List<? extends ToolProperty<?>> properties)
-
-
Method Detail
-
forEnvironment
public SnykInstallation forEnvironment(EnvVars environment)
- 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
-
-