public class PMExecutionServices extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
JOB_STATUS_FAILED |
static int |
JOB_STATUS_RUNNING |
static int |
JOB_STATUS_SUCCESS |
| Constructor and Description |
|---|
PMExecutionServices() |
| Modifier and Type | Method and Description |
|---|---|
static hudson.FilePath |
getExecutionReport(PerfectoMobileBuilder.DescriptorImpl descriptor,
hudson.model.AbstractBuild build,
hudson.model.BuildListener listener,
String jsonExecutionResult)
Call PM to retrieve the execution report.
|
static int |
getJobStatus(String perfectoResponse,
hudson.model.BuildListener listener)
Get job status according to manipulation on PM get execution status
response.
|
static Map<String,String> |
getScriptParameters(File inputFile)
Get script parameters from the file returned by PM cloud
|
static void |
uploadFiles(PerfectoMobileBuilder.DescriptorImpl descriptor,
hudson.model.AbstractBuild build,
hudson.model.BuildListener listener,
String textAreaParameters)
Call PM to upload files to the repository.
|
public static final int JOB_STATUS_RUNNING
public static final int JOB_STATUS_FAILED
public static final int JOB_STATUS_SUCCESS
public static int getJobStatus(String perfectoResponse, hudson.model.BuildListener listener)
perfectoResponse - listener - public static Map<String,String> getScriptParameters(File inputFile)
inputFile - public static hudson.FilePath getExecutionReport(PerfectoMobileBuilder.DescriptorImpl descriptor, hudson.model.AbstractBuild build, hudson.model.BuildListener listener, String jsonExecutionResult)
descriptor - build - listener - jsonExecutionResult - PM response in json formatInterruptedExceptionIOExceptionpublic static void uploadFiles(PerfectoMobileBuilder.DescriptorImpl descriptor, hudson.model.AbstractBuild build, hudson.model.BuildListener listener, String textAreaParameters)
descriptor - build - listener - uploadFiles - files to uploadCopyright © 2004-2014. All Rights Reserved.