public class AnsiblePlaybookInvocation 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 |
AnsiblePlaybookInvocation(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) |
AnsiblePlaybookInvocation |
setHostPattern(String playbook) |
T |
setInventory(Inventory inventory) |
AnsiblePlaybookInvocation |
setLimit(String limit) |
AnsiblePlaybookInvocation |
setSkippedTags(String skippedTags) |
AnsiblePlaybookInvocation |
setStartTask(String startAtTask) |
T |
setSudo(boolean sudo,
String sudoUser) |
AnsiblePlaybookInvocation |
setTags(String tags) |
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 AnsiblePlaybookInvocation(String ansibleInstallation, hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws IOException, InterruptedException, AnsibleInvocationException
public AnsiblePlaybookInvocation setHostPattern(String playbook)
public AnsiblePlaybookInvocation setLimit(String limit)
public AnsiblePlaybookInvocation setTags(String tags)
public AnsiblePlaybookInvocation setSkippedTags(String skippedTags)
public AnsiblePlaybookInvocation setStartTask(String startAtTask)
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.