public class AnsibleAdHocCommandInvocation extends Object
| Modifier and Type | Field and Description |
|---|---|
protected hudson.util.ArgumentListBuilder |
args |
protected hudson.model.AbstractBuild<?,?> |
build |
protected Map<String,String> |
environment |
protected hudson.EnvVars |
envVars |
protected hudson.Launcher |
launcher |
protected hudson.model.BuildListener |
listener |
| Modifier | Constructor and Description |
|---|---|
protected |
AnsibleAdHocCommandInvocation(String ansibleInstallation,
hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute() |
T |
setAdditionalParameters(String additionalParameters) |
T |
setColorizedOutput(boolean colorizedOutput) |
T |
setCredentials(String credentialsId) |
T |
setForks(int forks) |
T |
setHostKeyCheck(boolean hostKeyChecking) |
AnsibleAdHocCommandInvocation |
setHostPattern(String hostPattern) |
T |
setInventory(Inventory inventory) |
AnsibleAdHocCommandInvocation |
setModule(String module) |
AnsibleAdHocCommandInvocation |
setModuleCommand(String command) |
T |
setSudo(boolean sudo,
String sudoUser) |
T |
setUnbufferedOutput(boolean unbufferedOutput) |
protected final hudson.EnvVars envVars
protected final hudson.model.BuildListener listener
protected final hudson.model.AbstractBuild<?,?> build
protected final hudson.util.ArgumentListBuilder args
protected final hudson.Launcher launcher
protected AnsibleAdHocCommandInvocation(String ansibleInstallation, hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws IOException, InterruptedException, AnsibleInvocationException
public AnsibleAdHocCommandInvocation setHostPattern(String hostPattern)
public AnsibleAdHocCommandInvocation setModule(String module)
public AnsibleAdHocCommandInvocation setModuleCommand(String command)
public T setInventory(Inventory inventory) throws IOException, InterruptedException, AnsibleInvocationException
public T setForks(int forks)
public T setAdditionalParameters(String additionalParameters)
public T setSudo(boolean sudo,
String sudoUser)
public T setCredentials(String credentialsId) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic T setUnbufferedOutput(boolean unbufferedOutput)
public T setColorizedOutput(boolean colorizedOutput)
public T setHostKeyCheck(boolean hostKeyChecking)
public boolean execute()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionCopyright © 2004-2015. All Rights Reserved.