Package org.jenkinsci.plugins.ansible
Class AnsibleInstallation
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<ToolInstallation>
-
- hudson.tools.ToolInstallation
-
- org.jenkinsci.plugins.ansible.AnsibleInstallation
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ToolInstallation>
,EnvironmentSpecific<AnsibleInstallation>
,NodeSpecific<AnsibleInstallation>
,Serializable
public class AnsibleInstallation extends ToolInstallation implements EnvironmentSpecific<AnsibleInstallation>, NodeSpecific<AnsibleInstallation>, Serializable
ToolInstallation
for Ansible- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnsibleInstallation.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 AnsibleInstallation(String name, String home, List<? extends ToolProperty<?>> properties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnsibleInstallation[]
allInstallations()
void
buildEnvVars(EnvVars env)
AnsibleInstallation
forEnvironment(EnvVars environment)
AnsibleInstallation
forNode(Node node, TaskListener log)
static String
getExecutable(String name, AnsibleCommand command, Node node, TaskListener listener, EnvVars env)
static AnsibleInstallation
getInstallation(String ansibleInstallation)
-
Methods inherited from class hudson.tools.ToolInstallation
all, getHome, getName, getProperties, readResolve, toString, translate, translate, translateFor, writeReplace
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
AnsibleInstallation
@DataBoundConstructor public AnsibleInstallation(String name, String home, List<? extends ToolProperty<?>> properties)
-
-
Method Detail
-
forEnvironment
public AnsibleInstallation forEnvironment(EnvVars environment)
- Specified by:
forEnvironment
in interfaceEnvironmentSpecific<AnsibleInstallation>
-
forNode
public AnsibleInstallation forNode(Node node, TaskListener log) throws IOException, InterruptedException
- Specified by:
forNode
in interfaceNodeSpecific<AnsibleInstallation>
- Throws:
IOException
InterruptedException
-
getExecutable
public static String getExecutable(String name, AnsibleCommand command, Node node, TaskListener listener, EnvVars env) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
allInstallations
public static AnsibleInstallation[] allInstallations()
-
getInstallation
public static AnsibleInstallation getInstallation(String ansibleInstallation) throws IOException
- Throws:
IOException
-
buildEnvVars
public void buildEnvVars(EnvVars env)
- Overrides:
buildEnvVars
in classToolInstallation
-
-