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:
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.tools.ToolInstallation
ToolInstallation.ToolConverter
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionAnsibleInstallation
(String name, String home, List<? extends ToolProperty<?>> properties) -
Method Summary
Modifier and TypeMethodDescriptionstatic AnsibleInstallation[]
void
buildEnvVars
(EnvVars env) forEnvironment
(EnvVars environment) 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 Details
-
AnsibleInstallation
@DataBoundConstructor public AnsibleInstallation(String name, String home, List<? extends ToolProperty<?>> properties)
-
-
Method Details
-
forEnvironment
- 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
-
getInstallation
- Throws:
IOException
-
buildEnvVars
- Overrides:
buildEnvVars
in classToolInstallation
-