public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static net.sf.json.JSONObject |
createAuthArray(com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credential,
String authtype) |
static ServerToken |
getToken(hudson.Launcher launcher,
String servername,
net.sf.json.JSONObject auth) |
static String |
paramorize(hudson.model.Run<?,?> build,
hudson.model.TaskListener listener,
String paramer) |
static hudson.util.FormValidation |
validateFormStringField(String value,
String lackOfFieldMessage,
String fieldToShortMessage) |
static boolean |
validateFunctionCall(net.sf.json.JSONArray returnArray) |
static hudson.util.FormValidation |
validatePillar(String value) |
static void |
writeFile(String message,
hudson.FilePath workspace) |
public static ServerToken getToken(hudson.Launcher launcher, String servername, net.sf.json.JSONObject auth) throws InterruptedException, IOException
InterruptedException
IOException
public static String paramorize(hudson.model.Run<?,?> build, hudson.model.TaskListener listener, String paramer) throws IOException, InterruptedException
IOException
InterruptedException
public static boolean validateFunctionCall(net.sf.json.JSONArray returnArray)
public static hudson.util.FormValidation validateFormStringField(String value, String lackOfFieldMessage, String fieldToShortMessage)
public static hudson.util.FormValidation validatePillar(String value)
public static net.sf.json.JSONObject createAuthArray(com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credential, String authtype)
public static void writeFile(String message, hudson.FilePath workspace) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2016–2020. All rights reserved.