Package org.ow2.clif.jenkins
Class ClifInstallation
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<ToolInstallation>
-
- hudson.tools.ToolInstallation
-
- org.ow2.clif.jenkins.ClifInstallation
-
- All Implemented Interfaces:
ExtensionPoint,Describable<ToolInstallation>,EnvironmentSpecific<ClifInstallation>,NodeSpecific<ClifInstallation>,Serializable
public final class ClifInstallation extends ToolInstallation implements EnvironmentSpecific<ClifInstallation>, NodeSpecific<ClifInstallation>
Represents the Clif installation on the system.- Author:
- Julien Coste, Bruno Dillenseger
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClifInstallation.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 ClifInstallation(String name, String home, String options, ClifProActiveConfig clifProActiveConfig, List<? extends ToolProperty<?>> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClifInstallationforEnvironment(EnvVars environment)ClifInstallationforNode(Node node, TaskListener log)ClifProActiveConfiggetClifProActiveConfig()StringgetExecutable(Launcher launcher)Gets the executable path of this Clif on the given target system.booleangetExists()Checks executable existenceStringgetOptions()booleanisRunWithScheduler()-
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
-
ClifInstallation
@DataBoundConstructor public ClifInstallation(String name, String home, String options, ClifProActiveConfig clifProActiveConfig, List<? extends ToolProperty<?>> properties)
-
-
Method Detail
-
getOptions
public String getOptions()
-
getClifProActiveConfig
public ClifProActiveConfig getClifProActiveConfig()
-
isRunWithScheduler
public boolean isRunWithScheduler()
-
getExecutable
public String getExecutable(Launcher launcher) throws IOException, InterruptedException
Gets the executable path of this Clif on the given target system.- Parameters:
launcher- object- Returns:
- the executable path
- Throws:
InterruptedException- the call was interruptedIOException- exception trying to resolve the path
-
getExists
public boolean getExists() throws IOException, InterruptedExceptionChecks executable existence- Returns:
- true if the executable exists.
- Throws:
InterruptedException- the call was interruptedIOException- exception trying to find the executable
-
forEnvironment
public ClifInstallation forEnvironment(EnvVars environment)
- Specified by:
forEnvironmentin interfaceEnvironmentSpecific<ClifInstallation>
-
forNode
public ClifInstallation forNode(Node node, TaskListener log) throws IOException, InterruptedException
- Specified by:
forNodein interfaceNodeSpecific<ClifInstallation>- Throws:
IOExceptionInterruptedException
-
-