Class ServiceNowAPIClient
- java.lang.Object
 - 
- io.jenkins.plugins.servicenow.api.ServiceNowAPIClient
 
 
- 
public class ServiceNowAPIClient extends Object
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServiceNowAPIClient.AcceptResponseType 
- 
Field Summary
Fields Modifier and Type Field Description ServiceNowAPIClient.AcceptResponseTypeacceptResponseType 
- 
Constructor Summary
Constructors Constructor Description ServiceNowAPIClient(String url, String username, Secret password) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultactivatePlugin(String pluginId)ResultapplyChanges(String applicationScope, String systemId, String branchName)ResultbatchInstall(String payload)ResultbatchInstall(String batchName, String packages, String notes)ResultbatchRollback(String rollbackId)ResultcheckProgress()ResultexecuteFullScan()ResultexecutePointScan(String targetTable, String targetSysId)Execute Point Scan (with progress flow).ResultexecuteScanWithCombo(String comboSysId)ResultexecuteScanWithSuiteOnScopedApps(String suiteSysId, String requestBody)ResultexecuteScanWithSuiteOnUpdateSet(String suiteSysId, String requestBody)StringgetCurrentAppCustomizationVersion(String applicationScope, String systemId)StringgetCurrentAppVersion(String applicationScope, String systemId)StringgetLastActionProgressUrl()ResultgetTestSuiteResults(String resultsId)ResultinstallApp(String applicationScope, String applicationSysId, String applicationVersion)ResultinstallApp(String applicationScope, String applicationSysId, String applicationVersion, String baseAppVersion, Boolean autoUpgradeBaseApp)ResultpublishApp(String applicationScope, String applicationSysId, String applicationVersion, String devNotes)ResultrollbackApp(String applicationScope, String applicationSysId, String rollbackVersion)ResultrollbackPlugin(String pluginId)ResultrunTestSuite(String testSuiteName, String testSuiteSysId, String osName, String osVersion, String browserName, String browserVersion) 
 - 
 
- 
- 
Field Detail
- 
acceptResponseType
public ServiceNowAPIClient.AcceptResponseType acceptResponseType
 
 - 
 
- 
Method Detail
- 
getLastActionProgressUrl
public String getLastActionProgressUrl()
 
- 
applyChanges
public Result applyChanges(String applicationScope, String systemId, String branchName) throws IOException, URISyntaxException
- Throws:
 IOExceptionURISyntaxException
 
- 
runTestSuite
public Result runTestSuite(String testSuiteName, String testSuiteSysId, String osName, String osVersion, String browserName, String browserVersion) throws IOException, URISyntaxException
- Throws:
 IOExceptionURISyntaxException
 
- 
checkProgress
public Result checkProgress()
 
- 
publishApp
public Result publishApp(String applicationScope, String applicationSysId, String applicationVersion, String devNotes) throws IOException, URISyntaxException
- Throws:
 IOExceptionURISyntaxException
 
- 
installApp
public Result installApp(String applicationScope, String applicationSysId, String applicationVersion) throws IOException, URISyntaxException
- Throws:
 IOExceptionURISyntaxException
 
- 
installApp
public Result installApp(String applicationScope, String applicationSysId, String applicationVersion, String baseAppVersion, Boolean autoUpgradeBaseApp) throws IOException, URISyntaxException
- Throws:
 IOExceptionURISyntaxException
 
- 
rollbackApp
public Result rollbackApp(String applicationScope, String applicationSysId, String rollbackVersion) throws IOException, URISyntaxException
- Throws:
 IOExceptionURISyntaxException
 
- 
activatePlugin
public Result activatePlugin(String pluginId) throws IOException, URISyntaxException
- Throws:
 IOExceptionURISyntaxException
 
- 
rollbackPlugin
public Result rollbackPlugin(String pluginId) throws IOException, URISyntaxException
- Throws:
 IOExceptionURISyntaxException
 
- 
getCurrentAppCustomizationVersion
public String getCurrentAppCustomizationVersion(String applicationScope, String systemId)
 
- 
executeFullScan
public Result executeFullScan() throws IOException, URISyntaxException
- Throws:
 IOExceptionURISyntaxException
 
- 
executePointScan
public Result executePointScan(String targetTable, String targetSysId) throws IOException, URISyntaxException
Execute Point Scan (with progress flow).- Parameters:
 targetTable- Target table to be scanned.targetSysId- Target record to be scanned.- Returns:
 - Results with a link to follow the progress of the scan.
 - Throws:
 IOExceptionURISyntaxException
 
- 
executeScanWithCombo
public Result executeScanWithCombo(String comboSysId) throws IOException, URISyntaxException
- Throws:
 IOExceptionURISyntaxException
 
- 
executeScanWithSuiteOnScopedApps
public Result executeScanWithSuiteOnScopedApps(String suiteSysId, String requestBody) throws IOException, URISyntaxException
- Throws:
 IOExceptionURISyntaxException
 
- 
executeScanWithSuiteOnUpdateSet
public Result executeScanWithSuiteOnUpdateSet(String suiteSysId, String requestBody) throws IOException, URISyntaxException
- Throws:
 IOExceptionURISyntaxException
 
- 
batchInstall
public Result batchInstall(String payload) throws IOException, URISyntaxException
- Throws:
 IOExceptionURISyntaxException
 
- 
batchInstall
public Result batchInstall(String batchName, String packages, String notes) throws IOException, URISyntaxException
- Throws:
 IOExceptionURISyntaxException
 
- 
batchRollback
public Result batchRollback(String rollbackId) throws IOException, URISyntaxException
- Throws:
 IOExceptionURISyntaxException
 
 - 
 
 -