Package sp.sd.flywayrunner.installation
Class FlywayInstallation
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<ToolInstallation>
-
- hudson.tools.ToolInstallation
-
- sp.sd.flywayrunner.installation.FlywayInstallation
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ToolInstallation>
,EnvironmentSpecific<FlywayInstallation>
,NodeSpecific<FlywayInstallation>
,Serializable
public class FlywayInstallation extends ToolInstallation implements NodeSpecific<FlywayInstallation>, EnvironmentSpecific<FlywayInstallation>
Flyway installation. The "flywayHome" may either be the full path to the executable, or the directory in which the executable resides. This dual meaning allows backwards compatibility with previous versions of the plugin.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FlywayInstallation.DescriptorImpl
-
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 FlywayInstallation(String name, String home, List<? extends ToolProperty<?>> properties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FlywayInstallation[]
allInstallations()
FlywayInstallation
forEnvironment(EnvVars environment)
FlywayInstallation
forNode(Node node, TaskListener log)
String
getExecutable(Launcher launcher)
String
getHome()
-
Methods inherited from class hudson.tools.ToolInstallation
all, buildEnvVars, getName, getProperties, readResolve, toString, translate, translate, translateFor, writeReplace
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
FlywayInstallation
@DataBoundConstructor public FlywayInstallation(String name, String home, List<? extends ToolProperty<?>> properties)
-
-
Method Detail
-
forEnvironment
public FlywayInstallation forEnvironment(EnvVars environment)
- Specified by:
forEnvironment
in interfaceEnvironmentSpecific<FlywayInstallation>
-
forNode
public FlywayInstallation forNode(Node node, TaskListener log) throws IOException, InterruptedException
- Specified by:
forNode
in interfaceNodeSpecific<FlywayInstallation>
- Throws:
IOException
InterruptedException
-
allInstallations
public static FlywayInstallation[] allInstallations()
-
getHome
public String getHome()
- Overrides:
getHome
in classToolInstallation
-
getExecutable
public String getExecutable(Launcher launcher) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
-