Class AnsibleTowerRunner
java.lang.Object
org.jenkinsci.plugins.ansible_tower.AnsibleTowerRunner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancancelJob(PrintStream logger) booleancancelProjectSync(PrintStream logger, TowerProjectSync projectSync) voidgetJobLogs(String importTowerLogs, PrintStream logger) booleanprojectRevision(PrintStream logger, String towerServer, String towerCredentialsId, String projectName, String revision, boolean verbose, EnvVars envVars, FilePath ws, Run<?, ?> run, Properties towerResults) booleanprojectRevision(PrintStream logger, String towerServer, String towerCredentialsId, String projectName, String revision, boolean verbose, EnvVars envVars, FilePath ws, Run<?, ?> run, Properties towerResults, TowerHttpTimeouts httpTimeouts) booleanprojectSync(PrintStream logger, String towerServer, String towerCredentialsId, String projectName, boolean verbose, boolean importTowerLogs, boolean removeColor, EnvVars envVars, FilePath ws, Run<?, ?> run, Properties towerResults, boolean async) booleanprojectSync(PrintStream logger, String towerServer, String towerCredentialsId, String projectName, boolean verbose, boolean importTowerLogs, boolean removeColor, EnvVars envVars, FilePath ws, Run<?, ?> run, Properties towerResults, boolean async, TowerHttpTimeouts httpTimeouts) booleanrunJobTemplate(PrintStream logger, String towerServer, String towerCredentialsId, String jobTemplate, String jobType, String extraVars, String limit, String jobTags, String skipJobTags, String inventory, String credential, String scmBranch, boolean verbose, String importTowerLogs, boolean removeColor, EnvVars envVars, String templateType, boolean legacyImportWorkflowChildLogs, FilePath ws, Run<?, ?> run, Properties towerResults) booleanrunJobTemplate(PrintStream logger, String towerServer, String towerCredentialsId, String jobTemplate, String jobType, String extraVars, String limit, String jobTags, String skipJobTags, String inventory, String credential, String scmBranch, boolean verbose, String importTowerLogs, boolean removeColor, EnvVars envVars, String templateType, boolean legacyImportWorkflowChildLogs, FilePath ws, Run<?, ?> run, Properties towerResults, boolean async) booleanrunJobTemplate(PrintStream logger, String towerServer, String towerCredentialsId, String jobTemplate, String jobType, String extraVars, String limit, String jobTags, String skipJobTags, String inventory, String credential, String scmBranch, boolean verbose, String importTowerLogs, boolean removeColor, EnvVars envVars, String templateType, boolean legacyImportWorkflowChildLogs, FilePath ws, Run<?, ?> run, Properties towerResults, boolean async, TowerHttpTimeouts httpTimeouts)
-
Constructor Details
-
AnsibleTowerRunner
public AnsibleTowerRunner()
-
-
Method Details
-
getLastFailureMessage
-
runJobTemplate
public boolean runJobTemplate(PrintStream logger, String towerServer, String towerCredentialsId, String jobTemplate, String jobType, String extraVars, String limit, String jobTags, String skipJobTags, String inventory, String credential, String scmBranch, boolean verbose, String importTowerLogs, boolean removeColor, EnvVars envVars, String templateType, boolean legacyImportWorkflowChildLogs, FilePath ws, Run<?, ?> run, Properties towerResults) -
runJobTemplate
public boolean runJobTemplate(PrintStream logger, String towerServer, String towerCredentialsId, String jobTemplate, String jobType, String extraVars, String limit, String jobTags, String skipJobTags, String inventory, String credential, String scmBranch, boolean verbose, String importTowerLogs, boolean removeColor, EnvVars envVars, String templateType, boolean legacyImportWorkflowChildLogs, FilePath ws, Run<?, ?> run, Properties towerResults, boolean async) -
runJobTemplate
public boolean runJobTemplate(PrintStream logger, String towerServer, String towerCredentialsId, String jobTemplate, String jobType, String extraVars, String limit, String jobTags, String skipJobTags, String inventory, String credential, String scmBranch, boolean verbose, String importTowerLogs, boolean removeColor, EnvVars envVars, String templateType, boolean legacyImportWorkflowChildLogs, FilePath ws, Run<?, ?> run, Properties towerResults, boolean async, TowerHttpTimeouts httpTimeouts) -
getJobLogs
- Throws:
AnsibleTowerException
-
cancelJob
-
cancelProjectSync
-
projectSync
public boolean projectSync(PrintStream logger, String towerServer, String towerCredentialsId, String projectName, boolean verbose, boolean importTowerLogs, boolean removeColor, EnvVars envVars, FilePath ws, Run<?, ?> run, Properties towerResults, boolean async) -
projectSync
public boolean projectSync(PrintStream logger, String towerServer, String towerCredentialsId, String projectName, boolean verbose, boolean importTowerLogs, boolean removeColor, EnvVars envVars, FilePath ws, Run<?, ?> run, Properties towerResults, boolean async, TowerHttpTimeouts httpTimeouts) -
projectRevision
public boolean projectRevision(PrintStream logger, String towerServer, String towerCredentialsId, String projectName, String revision, boolean verbose, EnvVars envVars, FilePath ws, Run<?, ?> run, Properties towerResults) -
projectRevision
public boolean projectRevision(PrintStream logger, String towerServer, String towerCredentialsId, String projectName, String revision, boolean verbose, EnvVars envVars, FilePath ws, Run<?, ?> run, Properties towerResults, TowerHttpTimeouts httpTimeouts)
-