Package com.piketec.jenkins.plugins.tpt
Class TptPlugin.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<T>
-
- hudson.tasks.BuildStepDescriptor<Builder>
-
- com.piketec.jenkins.plugins.tpt.TptPlugin.DescriptorImpl
-
- Enclosing class:
- TptPlugin
@Extension @Symbol("tptExecute") public static final class TptPlugin.DescriptorImpl extends BuildStepDescriptor<Builder>
The descriptor of TptPlugin- Author:
- jkuhnert, PikeTec GmbH
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_WORKER_JOB_COUNT
static String
DEFAULT_WORKER_JOB_TRIES
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FormValidation
doCheckExePaths(String exePaths)
Basic validation of the entered paths to tpt.exe.ListBoxModel
doFillJUnitLogLevelItems()
Makes the combobox list on the descriptor with all the possible options for the JunitLogLevelstatic boolean
getDefaultEnableJunit()
static boolean
getDefaultIsDistributing()
static com.piketec.jenkins.plugins.tpt.TptLog.LogLevel
getDefaultJUnitLogLevel()
static String
getDefaultTptBindingName()
static String
getDefaultTptPort()
static String
getDefaultTptStartUpWaitTime()
String
getDisplayName()
boolean
isApplicable(Class<? extends AbstractProject> jobType)
-
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Field Detail
-
DEFAULT_WORKER_JOB_COUNT
public static final String DEFAULT_WORKER_JOB_COUNT
- See Also:
- Constant Field Values
-
DEFAULT_WORKER_JOB_TRIES
public static final String DEFAULT_WORKER_JOB_TRIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultTptBindingName
public static String getDefaultTptBindingName()
- Returns:
- "TptApi"
-
getDefaultIsDistributing
public static boolean getDefaultIsDistributing()
- Returns:
false
-
getDefaultTptPort
public static String getDefaultTptPort()
- Returns:
- "1099"
-
getDefaultTptStartUpWaitTime
public static String getDefaultTptStartUpWaitTime()
- Returns:
- "60" (1 min)
-
getDefaultEnableJunit
public static boolean getDefaultEnableJunit()
- Returns:
false
-
getDefaultJUnitLogLevel
public static com.piketec.jenkins.plugins.tpt.TptLog.LogLevel getDefaultJUnitLogLevel()
- Returns:
INFO
-
doCheckExePaths
public static FormValidation doCheckExePaths(@QueryParameter String exePaths)
Basic validation of the entered paths to tpt.exe. At least one must exist.- Parameters:
exePaths
- The tpt installation paths- Returns:
- The validation of the form
-
isApplicable
public boolean isApplicable(Class<? extends AbstractProject> jobType)
- Specified by:
isApplicable
in classBuildStepDescriptor<Builder>
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<Builder>
-
doFillJUnitLogLevelItems
public ListBoxModel doFillJUnitLogLevelItems()
Makes the combobox list on the descriptor with all the possible options for the JunitLogLevel- Returns:
- items from the combobox list
-
-