public class Utils extends Object
Constructor and Description |
---|
Utils() |
Utils(hudson.model.Run run,
hudson.model.TaskListener listener) |
Utils(hudson.model.Run run,
hudson.model.TaskListener listener,
hudson.FilePath filePath) |
Modifier and Type | Method and Description |
---|---|
void |
batchExecManager(hudson.model.TaskListener listener,
String executionScript,
String executionShellLocation,
String executionVsifFile,
String buildId,
int buildNumber,
hudson.Launcher launcher) |
String |
checkExtraStaticAttr(String url,
boolean requireAuth,
String user,
String password,
String listOfAttr) |
String |
checkVAPIConnection(String url,
boolean requireAuth,
String user,
String password) |
static void |
configureAllowAll(HttpsURLConnection connection) |
String |
executeAPI(String jSON,
String apiUrl,
String url,
boolean requireAuth,
String user,
String password,
String requestMethod,
hudson.model.TaskListener listener,
boolean dynamicUserId,
String buildID,
int buildNumber,
String workPlacePath,
int connConnTimeOut,
int connReadTimeout,
boolean advConfig) |
String |
executeVSIFLaunch(String[] vsifs,
String url,
boolean requireAuth,
String user,
String password,
hudson.model.TaskListener listener,
boolean dynamicUserId,
String buildID,
int buildNumber,
String workPlacePath,
int connConnTimeOut,
int connReadTimeout,
boolean advConfig,
String jsonEnvInput,
boolean useUserOnFarm,
String userFarmType,
String[] farmUserPassword,
StepHolder stepHolder,
String envSourceInputFile,
String workingJobDir,
VMGRBuildArchiver vMGRBuildArchiver,
boolean userPrivateSSHKey,
String jsonAttrValuesInput,
String executionType,
String[] sessionNames,
String envSourceInputFileType,
hudson.Launcher launcher,
String jsonDefineInput) |
hudson.FilePath |
getFilePath() |
static String |
getRegressionURLFromVAPIURL(String vAPIUrl) |
HttpURLConnection |
getVAPIConnection(String apiUrl,
boolean requireAuth,
String user,
String password,
String requestMethod,
boolean dynamicUserId,
String buildID,
int buildNumber,
String workPlacePath,
hudson.model.TaskListener listener,
int connConnTimeOut,
int connReadTimeout,
boolean advConfig) |
String[] |
loadDataFromInputFiles(String buildID,
int buildNumber,
String workPlacePath,
String inputFile,
hudson.model.TaskListener listener,
boolean deleteInputFile,
String type,
String fileEnding) |
String[] |
loadFileCredentials(String buildID,
int buildNumber,
String workPlacePath,
String credentialInputFile,
hudson.model.TaskListener listener,
boolean deleteInputFile) |
BufferedReader |
loadFileFromWorkSpace(String buildID,
int buildNumber,
String workPlacePath,
String inputFile,
hudson.model.TaskListener listener,
boolean deleteInputFile,
String fileTypeEndingName) |
String |
loadJSONAttrValuesFromTextArea(String buildID,
int buildNumber,
String workPlacePath,
hudson.model.TaskListener listener,
String textarea) |
String |
loadJSONAttrValuesInput(String buildID,
int buildNumber,
String workPlacePath,
String attrValuesFile,
hudson.model.TaskListener listener) |
String |
loadJSONDefineInput(String buildID,
int buildNumber,
String workPlacePath,
String envInputFile,
hudson.model.TaskListener listener) |
String |
loadJSONDefineValuesFromTextArea(String buildID,
int buildNumber,
String workPlacePath,
hudson.model.TaskListener listener,
String textarea) |
String |
loadJSONEnvInput(String buildID,
int buildNumber,
String workPlacePath,
String envInputFile,
hudson.model.TaskListener listener) |
String |
loadJSONFromFile(String buildID,
int buildNumber,
String workPlacePath,
String vInputFile,
hudson.model.TaskListener listener,
boolean deleteInputFile) |
String |
loadUserSyntaxForSummaryReport(String buildID,
int buildNumber,
String workPlacePath,
String inputFile,
hudson.model.TaskListener listener,
boolean deleteInputFile) |
void |
moveFromNodeToMaster(String fileName,
hudson.Launcher launcher,
String content) |
String |
processErrorFromRespone(HttpURLConnection conn,
hudson.model.TaskListener listener,
boolean notInTestMode) |
BufferedReader |
readFileOnDisk(String fileOnDiskPath) |
void |
saveFileOnDisk(String fileOnDiskPath,
String output) |
BufferedReader |
standardReadFromDisk(String fileOnDiskPath) |
void |
standardWriteToDisk(String fileOnDiskPath,
String output) |
void |
waitTillSessionEnds(String url,
boolean requireAuth,
String user,
String password,
hudson.model.TaskListener listener,
boolean dynamicUserId,
String buildID,
int buildNumber,
String workPlacePath,
int connConnTimeOut,
int connReadTimeout,
boolean advConfig,
StepHolder stepHolder,
List listOfSessions,
boolean notInTestMode,
String workingJobDir,
hudson.Launcher launcher) |
public Utils(hudson.model.Run run, hudson.model.TaskListener listener)
public Utils(hudson.model.Run run, hudson.model.TaskListener listener, hudson.FilePath filePath)
public Utils()
public hudson.FilePath getFilePath()
public BufferedReader loadFileFromWorkSpace(String buildID, int buildNumber, String workPlacePath, String inputFile, hudson.model.TaskListener listener, boolean deleteInputFile, String fileTypeEndingName) throws Exception
Exception
public String[] loadDataFromInputFiles(String buildID, int buildNumber, String workPlacePath, String inputFile, hudson.model.TaskListener listener, boolean deleteInputFile, String type, String fileEnding) throws Exception
Exception
public String loadUserSyntaxForSummaryReport(String buildID, int buildNumber, String workPlacePath, String inputFile, hudson.model.TaskListener listener, boolean deleteInputFile) throws Exception
Exception
public String[] loadFileCredentials(String buildID, int buildNumber, String workPlacePath, String credentialInputFile, hudson.model.TaskListener listener, boolean deleteInputFile) throws Exception
Exception
public String loadJSONEnvInput(String buildID, int buildNumber, String workPlacePath, String envInputFile, hudson.model.TaskListener listener) throws Exception
Exception
public String loadJSONAttrValuesInput(String buildID, int buildNumber, String workPlacePath, String attrValuesFile, hudson.model.TaskListener listener) throws Exception
Exception
public String loadJSONDefineInput(String buildID, int buildNumber, String workPlacePath, String envInputFile, hudson.model.TaskListener listener) throws Exception
Exception
public String loadJSONAttrValuesFromTextArea(String buildID, int buildNumber, String workPlacePath, hudson.model.TaskListener listener, String textarea) throws Exception
Exception
public String loadJSONDefineValuesFromTextArea(String buildID, int buildNumber, String workPlacePath, hudson.model.TaskListener listener, String textarea) throws Exception
Exception
public String loadJSONFromFile(String buildID, int buildNumber, String workPlacePath, String vInputFile, hudson.model.TaskListener listener, boolean deleteInputFile) throws Exception
Exception
public String checkVAPIConnection(String url, boolean requireAuth, String user, String password) throws Exception
Exception
public String checkExtraStaticAttr(String url, boolean requireAuth, String user, String password, String listOfAttr) throws Exception
Exception
public HttpURLConnection getVAPIConnection(String apiUrl, boolean requireAuth, String user, String password, String requestMethod, boolean dynamicUserId, String buildID, int buildNumber, String workPlacePath, hudson.model.TaskListener listener, int connConnTimeOut, int connReadTimeout, boolean advConfig) throws Exception
Exception
public String executeVSIFLaunch(String[] vsifs, String url, boolean requireAuth, String user, String password, hudson.model.TaskListener listener, boolean dynamicUserId, String buildID, int buildNumber, String workPlacePath, int connConnTimeOut, int connReadTimeout, boolean advConfig, String jsonEnvInput, boolean useUserOnFarm, String userFarmType, String[] farmUserPassword, StepHolder stepHolder, String envSourceInputFile, String workingJobDir, VMGRBuildArchiver vMGRBuildArchiver, boolean userPrivateSSHKey, String jsonAttrValuesInput, String executionType, String[] sessionNames, String envSourceInputFileType, hudson.Launcher launcher, String jsonDefineInput) throws Exception
Exception
public String executeAPI(String jSON, String apiUrl, String url, boolean requireAuth, String user, String password, String requestMethod, hudson.model.TaskListener listener, boolean dynamicUserId, String buildID, int buildNumber, String workPlacePath, int connConnTimeOut, int connReadTimeout, boolean advConfig) throws Exception
Exception
public void waitTillSessionEnds(String url, boolean requireAuth, String user, String password, hudson.model.TaskListener listener, boolean dynamicUserId, String buildID, int buildNumber, String workPlacePath, int connConnTimeOut, int connReadTimeout, boolean advConfig, StepHolder stepHolder, List listOfSessions, boolean notInTestMode, String workingJobDir, hudson.Launcher launcher) throws Exception
Exception
public static void configureAllowAll(HttpsURLConnection connection)
public String processErrorFromRespone(HttpURLConnection conn, hudson.model.TaskListener listener, boolean notInTestMode)
public void saveFileOnDisk(String fileOnDiskPath, String output) throws IOException
IOException
public BufferedReader readFileOnDisk(String fileOnDiskPath) throws FileNotFoundException
FileNotFoundException
public void standardWriteToDisk(String fileOnDiskPath, String output) throws IOException
IOException
public BufferedReader standardReadFromDisk(String fileOnDiskPath) throws FileNotFoundException
FileNotFoundException
public void moveFromNodeToMaster(String fileName, hudson.Launcher launcher, String content) throws IOException, InterruptedException
IOException
InterruptedException
public void batchExecManager(hudson.model.TaskListener listener, String executionScript, String executionShellLocation, String executionVsifFile, String buildId, int buildNumber, hudson.Launcher launcher) throws IOException
IOException
Copyright © 2016–2024 Cadence. All rights reserved.