public class Utils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Utils.ApiAuthenticator |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkJSONRPCEndpoint(String endpoint) |
static File |
decodeBase64ToBinaryFile(String path,
String base64String) |
static String |
encodeFileToBase64Binary(File file) |
static void |
exportEnvironmentVariable(hudson.model.AbstractBuild<?,?> build,
String name,
String value) |
static byte[] |
fetchURL(URL url) |
static String[] |
getCSVStringValue(hudson.model.AbstractBuild<?,?> build,
hudson.model.TaskListener listener,
String line) |
static String[] |
getCSVStringValue(hudson.model.AbstractBuild<?,?> build,
hudson.model.TaskListener listener,
String line,
int expandingDepth) |
static String |
getImplementationVersion() |
static Proxy |
getJenkinsProxy(URL url) |
static hudson.EnvVars |
getNodeEnvVars() |
static com.thetransactioncompany.jsonrpc2.client.JSONRPC2Session |
initJSONRPCSession(String endpoint,
String apiToken,
String apiTokenCredentialId) |
static boolean |
isInteger(String value) |
public static boolean isInteger(String value)
public static com.thetransactioncompany.jsonrpc2.client.JSONRPC2Session initJSONRPCSession(String endpoint, String apiToken, String apiTokenCredentialId) throws MalformedURLException
MalformedURLExceptionpublic static boolean checkJSONRPCEndpoint(String endpoint)
public static String encodeFileToBase64Binary(File file) throws IOException
IOExceptionpublic static File decodeBase64ToBinaryFile(String path, String base64String) throws IOException
IOExceptionpublic static void exportEnvironmentVariable(hudson.model.AbstractBuild<?,?> build,
String name,
String value)
public static String getImplementationVersion()
public static String[] getCSVStringValue(hudson.model.AbstractBuild<?,?> build, hudson.model.TaskListener listener, String line) throws org.jenkinsci.plugins.tokenmacro.MacroEvaluationException, IOException, InterruptedException
org.jenkinsci.plugins.tokenmacro.MacroEvaluationExceptionIOExceptionInterruptedExceptionpublic static String[] getCSVStringValue(hudson.model.AbstractBuild<?,?> build, hudson.model.TaskListener listener, String line, int expandingDepth) throws org.jenkinsci.plugins.tokenmacro.MacroEvaluationException, IOException, InterruptedException
org.jenkinsci.plugins.tokenmacro.MacroEvaluationExceptionIOExceptionInterruptedExceptionpublic static byte[] fetchURL(URL url)
public static hudson.EnvVars getNodeEnvVars()
Copyright © 2016–2018. All rights reserved.