public class TowerConnector extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JOB_TEMPLATE_TYPE |
static String |
WORKFLOW_TEMPLATE_TYPE |
| Constructor and Description |
|---|
TowerConnector(String url,
String username,
String password) |
TowerConnector(String url,
String username,
String password,
Boolean trustAllCerts) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkTemplateType(String templateType) |
net.sf.json.JSONObject |
getJobTemplate(String jobTemplate,
String templateType) |
String |
getJobURL(int myJobID,
String templateType) |
boolean |
isJobCommpleted(int jobID,
String templateType) |
boolean |
isJobFailed(int jobID,
String templateType) |
void |
logEvents(int jobID,
PrintStream jenkinsLogger,
boolean removeColor,
String templateType,
boolean importWorkflowChildLogs) |
void |
setDebug(boolean debug) |
void |
setTrustAllCerts(boolean trustAllCerts) |
int |
submitTemplate(int jobTemplate,
String extraVars,
String limit,
String jobTags,
String inventory,
String credential,
String templateType) |
void |
testConnection() |
public static final String JOB_TEMPLATE_TYPE
public static final String WORKFLOW_TEMPLATE_TYPE
public void setTrustAllCerts(boolean trustAllCerts)
public void setDebug(boolean debug)
public void testConnection()
throws AnsibleTowerException
AnsibleTowerExceptionpublic net.sf.json.JSONObject getJobTemplate(String jobTemplate, String templateType) throws AnsibleTowerException
AnsibleTowerExceptionpublic int submitTemplate(int jobTemplate,
String extraVars,
String limit,
String jobTags,
String inventory,
String credential,
String templateType)
throws AnsibleTowerException
AnsibleTowerExceptionpublic void checkTemplateType(String templateType) throws AnsibleTowerException
AnsibleTowerExceptionpublic boolean isJobCommpleted(int jobID,
String templateType)
throws AnsibleTowerException
AnsibleTowerExceptionpublic void logEvents(int jobID,
PrintStream jenkinsLogger,
boolean removeColor,
String templateType,
boolean importWorkflowChildLogs)
throws AnsibleTowerException
AnsibleTowerExceptionpublic boolean isJobFailed(int jobID,
String templateType)
throws AnsibleTowerException
AnsibleTowerExceptionCopyright © 2016–2017. All rights reserved.