public class SMAConnection extends Object
Constructor and Description |
---|
SMAConnection(String username,
String password,
String securityToken,
String server,
String pollWaitString,
String maxPollString,
String proxyServer,
String proxyUser,
String proxyPass,
Integer proxyPort)
Constructor that sets up the connection to a Salesforce organization
|
Modifier and Type | Method and Description |
---|---|
boolean |
deployToServer(ByteArrayOutputStream bytes,
com.sforce.soap.metadata.TestLevel testLevel,
String[] specifiedTests,
boolean validateOnly,
boolean containsApex)
Sets configuration and performs the deployment of metadata to a Salesforce organization
|
String |
getCodeCoverage()
Returns a formatted string of the code coverage information for this deployment
|
String |
getCodeCoverageWarnings()
Returns a formatted string of code coverage warnings for printing to the Jenkins console
|
String |
getComponentFailures()
Returns a formatted string of component failures for printing to the Jenkins console
|
com.sforce.soap.metadata.DeployDetails |
getDeployDetails()
Returns the DeployDetails from this deployment
|
String |
getTestFailures()
Returns a formatted string of test failures for printing to the Jenkins console
|
void |
setDeployDetails(com.sforce.soap.metadata.DeployDetails deployDetails)
Sets the DeployDetails for this deployment.
|
public SMAConnection(String username, String password, String securityToken, String server, String pollWaitString, String maxPollString, String proxyServer, String proxyUser, String proxyPass, Integer proxyPort) throws Exception
username
- password
- securityToken
- server
- pollWaitString
- maxPollString
- proxyServer
- proxyUser
- proxyPort
- proxyPass
- Exception
public boolean deployToServer(ByteArrayOutputStream bytes, com.sforce.soap.metadata.TestLevel testLevel, String[] specifiedTests, boolean validateOnly, boolean containsApex) throws Exception
bytes
- validateOnly
- testLevel
- specifiedTests
- containsApex
- Exception
public String getTestFailures()
public String getComponentFailures()
public String getCodeCoverage()
public String getCodeCoverageWarnings()
public com.sforce.soap.metadata.DeployDetails getDeployDetails()
public void setDeployDetails(com.sforce.soap.metadata.DeployDetails deployDetails)
deployDetails
- Copyright © 2004-2016. All Rights Reserved.