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 ClassesModifier and TypeClassDescriptionstatic final classIf 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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if it is possible to add parameters to the trigger.doCheckDownstreamProjectNames(AbstractProject project, String value) Validates that the downstream project names entered are valid projects.List<Descriptor<hudson.plugins.parameterizedtrigger.AbstractBuildParameters>>set the display name in post build action section of the job configuration pageSet help text to "Build Pipeline Plugin -> Manually Execute Downstream Project" Post Build action in JOB configuration pagebooleanisApplicable(Class<? extends AbstractProject> jobType) Methods inherited from class hudson.tasks.BuildStepDescriptor
filterMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
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
- Specified by:
isApplicablein classBuildStepDescriptor<Publisher>
-
getDisplayName
set the display name in post build action section of the job configuration page- Overrides:
getDisplayNamein classDescriptor<Publisher>- Returns:
- display name
-
getHelpFile
Set help text to "Build Pipeline Plugin -> Manually Execute Downstream Project" Post Build action in JOB configuration page- Overrides:
getHelpFilein 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()
-