public final class SauceEnvironmentUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
browserAsJSON(net.sf.json.JSONArray browsersJSON,
com.saucelabs.ci.Browser browserInstance,
String userName,
String apiKey)
Populates the JSONArray with a JSON representation of the selected browser
|
static String |
generateTunnelIdentifier(String projectName) |
static String |
getBuildName(hudson.model.AbstractBuild<?,?> build) |
static SauceOnDemandBuildWrapper |
getBuildWrapper(hudson.model.AbstractProject<?,?> project) |
static void |
outputEnvironmentVariable(Map<String,String> env,
String key,
String value,
boolean overwrite,
boolean verboseLogging,
PrintStream printStream)
Adds the key/value pair to the map of environment variables.
|
static void |
outputEnvironmentVariable(Map<String,String> env,
String key,
String value,
boolean verboseLogging,
PrintStream printStream)
Adds the key/value pair to the map of environment variables.
|
static void |
outputEnvironmentVariablesForBrowser(Map<String,String> env,
com.saucelabs.ci.Browser browserInstance,
String userName,
String apiKey,
boolean overwrite,
boolean verboseLogging,
PrintStream printStream)
Adds the environment variables for the selected browser.
|
static void |
outputEnvironmentVariablesForBrowser(Map<String,String> env,
com.saucelabs.ci.Browser browserInstance,
String userName,
String apiKey,
boolean verboseLogging,
PrintStream printStream)
Adds the environment variables for the selected browser.
|
static void |
outputVariables(Map<String,String> env,
List<com.saucelabs.ci.Browser> browsers,
String userName,
String apiKey,
boolean verboseLogging,
PrintStream logger)
Adds the environment variables for the selected Appium browsers.
|
public static void outputVariables(Map<String,String> env, List<com.saucelabs.ci.Browser> browsers, String userName, String apiKey, boolean verboseLogging, PrintStream logger)
env - the map of environment variablesbrowsers - the list of selected browsersuserName - the Sauce user nameapiKey - the Sauce access keyverboseLogging - Enable/Disable verbose logging of env variableslogger - Where to log if necessarypublic static void browserAsJSON(net.sf.json.JSONArray browsersJSON,
com.saucelabs.ci.Browser browserInstance,
String userName,
String apiKey)
browsersJSON - array of browsersbrowserInstance - selected Browser being processeduserName - the Sauce usernameapiKey - the Sauce access keypublic static void outputEnvironmentVariablesForBrowser(Map<String,String> env, com.saucelabs.ci.Browser browserInstance, String userName, String apiKey, boolean verboseLogging, PrintStream printStream)
env - the map of environment variablesbrowserInstance - FIXMEuserName - the Sauce user nameapiKey - the Sauce access keyverboseLogging - Enable/Disable verbose logging of env variablesprintStream - Where to log if necessarypublic static void outputEnvironmentVariablesForBrowser(Map<String,String> env, com.saucelabs.ci.Browser browserInstance, String userName, String apiKey, boolean overwrite, boolean verboseLogging, PrintStream printStream)
env - the map of environment variablesbrowserInstance - FIXMEuserName - the Sauce user nameapiKey - the Sauce access keyoverwrite - indicates whether existing environment variables should be overwrittenverboseLogging - Enable/Disable verbose logging of env variablesprintStream - Where to log if necessarypublic static void outputEnvironmentVariable(Map<String,String> env, String key, String value, boolean verboseLogging, PrintStream printStream)
env - the map of environment variableskey - environment variable keyvalue - environment variable valueverboseLogging - Enable/Disable verbose logging of env variablesprintStream - Where to log if necessarypublic static void outputEnvironmentVariable(Map<String,String> env, String key, String value, boolean overwrite, boolean verboseLogging, PrintStream printStream)
env - the map of environment variableskey - environment variable keyvalue - environment variable valueoverwrite - indicates whether existing environment variables should be overwrittenverboseLogging - Enable/Disable verbose logging of env variablesprintStream - Where to log if necessarypublic static SauceOnDemandBuildWrapper getBuildWrapper(hudson.model.AbstractProject<?,?> project)
project - the Jenkins project to checkpublic static String getBuildName(hudson.model.AbstractBuild<?,?> build)
build - the Jenkins buildCopyright © 2004-2015. All Rights Reserved.