Class Utils
java.lang.Object
org.jenkinsci.plugins.electricflow.Utils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddParametersToJson(List<String> pipelineParameters, net.sf.json.JSONArray parametersArray, String parameterName, String parameterValue) static voidaddParametersToJsonAndPreserveStored(List<String> pipelineParameters, net.sf.json.JSONArray parametersArray, String parameterName, String parameterValue, Map<String, String> storedParamsMap) static Stringstatic voidexpandParameters(net.sf.json.JSONArray parameters, EnvReplacer env) static voidexpandParameters(net.sf.json.JSONArray parameters, EnvReplacer env, String propertyName) static ListBoxModelstatic StringformatJsonOutput(String result) static ConfigurationgetConfigurationByName(String name) static List<Configuration> static ResultgetCorrespondedCiBuildResult(CdJobOutcome cdJobOutcome) static ResultgetCorrespondedCiBuildResult(CdPipelineStatus cdPipelineStatus) static StringgetExtraHTML(net.sf.json.JSONArray parameters, String summaryText, String parameterName, String parameterValue, String sectionName) static PrintStreamgetLogger(BuildListener bl, TaskListener tl) static EnvVarsstatic StringgetParametersHTML(List<String> parameters, String summaryText) static StringgetParametersHTML(net.sf.json.JSONArray parameters, String summaryText, String parameterName, String parameterValue) static LinkedHashMap<String, String> getParamsMap(net.sf.json.JSONArray paramsJsonArray, String parameterName, String parameterValue) static ListBoxModelgetPipelines(String configuration, Credential overrideCredential, Item item, String projectName) static ListBoxModelgetProjects(String configuration, Credential overrideCredential) static ListBoxModelgetProjects(String configuration, Credential overrideCredential, boolean warnOnSelectProject) static ListBoxModelgetProjects(String configuration, Credential overrideCredential, Item item, boolean warnOnSelectProject) static Stringstatic StringgetValidationComparisonRow(String parameterName, Object oldValue, Object newValue) static StringgetValidationComparisonRowNewParam(String parameterName, Object newValue) static StringgetValidationComparisonRowOldParam(String parameterName, Object oldValue) static StringgetValidationComparisonRowsForExtraParameters(String sectionName, Map<String, String> oldParamsMap, Map<String, String> newParamsMap) static booleanisEflowAvailable(String configuration, Credential overrideCredential, Item item) static booleanisEflowAvailable(String configuration, Credential overrideCredential, Run run) static booleanisEflowAvailable(String configuration, Credential overrideCredential, CredentialHandler credentialHandler) static FormValidationvalidateConfiguration(String configuration, Item item) static FormValidationvalidateValueOnEmpty(String value, String fieldName)
-
Field Details
-
CONFIG_SKIP_CHECK_CONNECTION
- See Also:
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
addParametersToJson
-
getParamsMap
public static LinkedHashMap<String,String> getParamsMap(net.sf.json.JSONArray paramsJsonArray, String parameterName, String parameterValue) -
addParametersToJsonAndPreserveStored
-
encodeURL
- Throws:
UnsupportedEncodingException
-
expandParameters
-
expandParameters
public static void expandParameters(net.sf.json.JSONArray parameters, EnvReplacer env, String propertyName) -
fillConfigurationItems
-
formatJsonOutput
- Throws:
IOException
-
validateValueOnEmpty
-
validateConfiguration
-
getConfigurationByName
-
getConfigurations
-
getParametersHTML
-
getParametersHTML
-
getExtraHTML
-
getPipelines
public static ListBoxModel getPipelines(String configuration, Credential overrideCredential, Item item, String projectName) -
isEflowAvailable
public static boolean isEflowAvailable(String configuration, Credential overrideCredential, Run run) -
isEflowAvailable
public static boolean isEflowAvailable(String configuration, Credential overrideCredential, Item item) -
isEflowAvailable
public static boolean isEflowAvailable(String configuration, Credential overrideCredential, CredentialHandler credentialHandler) -
getProjects
-
getProjects
public static ListBoxModel getProjects(String configuration, Credential overrideCredential, boolean warnOnSelectProject) -
getProjects
public static ListBoxModel getProjects(String configuration, Credential overrideCredential, Item item, boolean warnOnSelectProject) -
getValidationComparisonHeaderRow
-
getValidationComparisonRow
-
getValidationComparisonRowOldParam
-
getValidationComparisonRowNewParam
-
getValidationComparisonRowsForExtraParameters
-
getNodeEnvVars
-
getLogger
-
getCorrespondedCiBuildResult
-
getCorrespondedCiBuildResult
-