Class BuildPipelineTrigger.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<T>
-
- hudson.tasks.BuildStepDescriptor<Publisher>
-
- au.com.centrumsystems.hudson.plugin.buildpipeline.trigger.BuildPipelineTrigger.DescriptorImpl
-
- Enclosing class:
- BuildPipelineTrigger
@Extension public static class BuildPipelineTrigger.DescriptorImpl extends BuildStepDescriptor<Publisher>
Set the descriptor for build pipeline trigger class This descriptor is only attached to Build Trigger Post Build action in JOB configuration page- Author:
- Centrum Systems
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BuildPipelineTrigger.DescriptorImpl.ItemListenerImpl
If a job is renamed, update all BuildPipelineTriggers with the new name.-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canAddParameters()
Returns true if it is possible to add parameters to the trigger.FormValidation
doCheckDownstreamProjectNames(AbstractProject project, String value)
Validates that the downstream project names entered are valid projects.List<Descriptor<hudson.plugins.parameterizedtrigger.AbstractBuildParameters>>
getBuilderConfigDescriptors()
String
getDisplayName()
set the display name in post build action section of the job configuration pageString
getHelpFile()
Set help text to "Build Pipeline Plugin -> Manually Execute Downstream Project" Post Build action in JOB configuration pageboolean
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, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
canAddParameters
public boolean canAddParameters()
Returns true if it is possible to add parameters to the trigger. This is the case when the parameterized-trigger plugin is both installed and active.- Returns:
- true if it is possible to add parameters to the trigger
-
isApplicable
public boolean isApplicable(Class<? extends AbstractProject> jobType)
- Specified by:
isApplicable
in classBuildStepDescriptor<Publisher>
-
getDisplayName
public String getDisplayName()
set the display name in post build action section of the job configuration page- Overrides:
getDisplayName
in classDescriptor<Publisher>
- Returns:
- display name
-
getHelpFile
public String getHelpFile()
Set help text to "Build Pipeline Plugin -> Manually Execute Downstream Project" Post Build action in JOB configuration page- Overrides:
getHelpFile
in classDescriptor<Publisher>
- Returns:
- location of the help file
-
doCheckDownstreamProjectNames
public FormValidation doCheckDownstreamProjectNames(@AncestorInPath AbstractProject project, @QueryParameter("downstreamProjectNames") String value)
Validates that the downstream project names entered are valid projects.- Parameters:
value
- - The entered project namesproject
- - the containing project- Returns:
- hudson.util.FormValidation
-
getBuilderConfigDescriptors
public List<Descriptor<hudson.plugins.parameterizedtrigger.AbstractBuildParameters>> getBuilderConfigDescriptors()
-
-