au.com.centrumsystems.hudson.plugin.buildpipeline.trigger
Class BuildPipelineTrigger.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<T>
      extended by hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
          extended by au.com.centrumsystems.hudson.plugin.buildpipeline.trigger.BuildPipelineTrigger.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
BuildPipelineTrigger

@Extension
public static class BuildPipelineTrigger.DescriptorImpl
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.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
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
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
BuildPipelineTrigger.DescriptorImpl()
           
 
Method Summary
 boolean canAddParameters()
          Returns true if it is possible to add parameters to the trigger.
 hudson.util.FormValidation doCheckDownstreamProjectNames(hudson.model.AbstractProject project, String value)
          Validates that the downstream project names entered are valid projects.
 List<hudson.model.Descriptor<hudson.plugins.parameterizedtrigger.AbstractBuildParameters>> getBuilderConfigDescriptors()
           
 String getDisplayName()
          set the display name in post build action section of the job configuration page
 String getHelpFile()
          Set help text to "Build Pipeline Plugin -> Manually Execute Downstream Project" Post Build action in JOB configuration page
 boolean isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
           
 
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildPipelineTrigger.DescriptorImpl

public BuildPipelineTrigger.DescriptorImpl()
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 hudson.model.AbstractProject> jobType)
Specified by:
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>

getDisplayName

public String getDisplayName()
set the display name in post build action section of the job configuration page

Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.tasks.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 class hudson.model.Descriptor<hudson.tasks.Publisher>
Returns:
location of the help file

doCheckDownstreamProjectNames

public hudson.util.FormValidation doCheckDownstreamProjectNames(@AncestorInPath
                                                                hudson.model.AbstractProject project,
                                                                @QueryParameter(value="downstreamProjectNames")
                                                                String value)
Validates that the downstream project names entered are valid projects.

Parameters:
value - - The entered project names
project - - the containing project
Returns:
hudson.util.FormValidation

getBuilderConfigDescriptors

public List<hudson.model.Descriptor<hudson.plugins.parameterizedtrigger.AbstractBuildParameters>> getBuilderConfigDescriptors()


Copyright © 2004-2015. All Rights Reserved.