public class SaltAPIBuilder extends hudson.tasks.Builder implements jenkins.tasks.SimpleBuildStep, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SaltAPIBuilder.DescriptorImpl |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Constructor and Description |
---|
SaltAPIBuilder(String servername,
String authtype,
BasicClient clientInterface,
String credentialsId) |
Modifier and Type | Method and Description |
---|---|
String |
getArguments() |
String |
getAuthtype() |
String |
getBatchSize() |
String |
getBatchWait() |
boolean |
getBlockbuild() |
BasicClient |
getClientInterface() |
String |
getCredentialsId() |
SaltAPIBuilder.DescriptorImpl |
getDescriptor() |
String |
getFunction() |
String |
getJID(hudson.Launcher launcher,
String serverName,
String token,
net.sf.json.JSONObject saltFunc,
hudson.model.TaskListener listener) |
int |
getJobPollTime() |
int |
getMinionTimeout() |
String |
getMods() |
String |
getPillarvalue() |
String |
getPost() |
boolean |
getSaveEnvVar() |
boolean |
getSaveFile() |
String |
getServername() |
boolean |
getSkipValidation() |
String |
getSubset() |
String |
getTag() |
String |
getTarget() |
String |
getTargettype() |
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
net.sf.json.JSONArray |
performRequest(hudson.Launcher launcher,
hudson.model.Run build,
String token,
String serverName,
net.sf.json.JSONObject saltFunc,
hudson.model.TaskListener listener,
String netapi,
String jid) |
net.sf.json.JSONObject |
prepareSaltFunction(hudson.model.Run build,
hudson.model.TaskListener listener,
String myClientInterface,
String mytarget,
String myfunction,
String myarguments,
String myApiVersion,
String targetType) |
protected Object |
readResolve() |
void |
setSaveEnvVar(boolean saveEnvVar) |
void |
setSaveFile(boolean saveFile) |
void |
setServername(String servername) |
void |
setSkipValidation(boolean skipValidation) |
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
@DataBoundConstructor public SaltAPIBuilder(String servername, String authtype, BasicClient clientInterface, String credentialsId)
protected Object readResolve() throws IOException
IOException
public String getServername()
@DataBoundSetter public void setServername(String servername)
public String getAuthtype()
public String getTarget()
public String getTargettype()
public String getFunction()
public String getArguments()
public boolean getBlockbuild()
public String getBatchSize()
public String getBatchWait()
public int getJobPollTime()
public int getMinionTimeout()
public String getMods()
public String getPillarvalue()
public String getSubset()
public String getCredentialsId()
@DataBoundSetter public void setSaveEnvVar(boolean saveEnvVar)
public boolean getSaveEnvVar()
@DataBoundSetter public void setSaveFile(boolean saveFile)
public boolean getSaveFile()
public BasicClient getClientInterface()
public String getPost()
public String getTag()
@DataBoundSetter public void setSkipValidation(boolean skipValidation)
public boolean getSkipValidation()
public void perform(hudson.model.Run<?,?> build, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener) throws InterruptedException, IOException
perform
in interface jenkins.tasks.SimpleBuildStep
InterruptedException
IOException
public String getJID(hudson.Launcher launcher, String serverName, String token, net.sf.json.JSONObject saltFunc, hudson.model.TaskListener listener) throws IOException, InterruptedException, SaltException
public net.sf.json.JSONArray performRequest(hudson.Launcher launcher, hudson.model.Run build, String token, String serverName, net.sf.json.JSONObject saltFunc, hudson.model.TaskListener listener, String netapi, String jid) throws InterruptedException, IOException, SaltException
public net.sf.json.JSONObject prepareSaltFunction(hudson.model.Run build, hudson.model.TaskListener listener, String myClientInterface, String mytarget, String myfunction, String myarguments, String myApiVersion, String targetType) throws IOException, InterruptedException
IOException
InterruptedException
public SaltAPIBuilder.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Builder>
getDescriptor
in class hudson.tasks.Builder
Copyright © 2016–2020. All rights reserved.