Class JenkinsUtil
- java.lang.Object
-
- com.oracle.cloud.baremetal.jenkins.JenkinsUtil
-
public class JenkinsUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description JenkinsUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Describable<T>>
Descriptor<T>getDescriptorOrDie(Class<? extends T> type)
static <S extends Describable<S>,T extends S,D extends Descriptor<S>>
DgetDescriptorOrDie(Class<T> type, Class<D> descriptorType)
static EnvVars
getJenkinsEnvVars()
static Jenkins
getJenkinsInstance()
static String
unescape(String s)
static FormValidation
validateRequired(String value)
Similar toFormValidation.validateRequired(java.lang.String)
, but uses the same error message as<f:textbox clazz="required"/>
.
-
-
-
Method Detail
-
getDescriptorOrDie
public static <T extends Describable<T>> Descriptor<T> getDescriptorOrDie(Class<? extends T> type)
-
getDescriptorOrDie
public static <S extends Describable<S>,T extends S,D extends Descriptor<S>> D getDescriptorOrDie(Class<T> type, Class<D> descriptorType)
-
validateRequired
public static FormValidation validateRequired(String value)
Similar toFormValidation.validateRequired(java.lang.String)
, but uses the same error message as<f:textbox clazz="required"/>
.- Parameters:
value
- , the validation value- Returns:
- FormValidation
-
getJenkinsInstance
public static Jenkins getJenkinsInstance()
-
getJenkinsEnvVars
public static EnvVars getJenkinsEnvVars()
-
-