public static final class IvyBuildTrigger.DescriptorImpl
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
implements hudson.model.PersistentDescriptor
| Constructor and Description |
|---|
DescriptorImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
Configure the Descriptor from a GUI request.
|
hudson.util.FormValidation |
doCheckIvyConf(java.lang.String value)
Check that the Ivy configuration file exists.
|
hudson.util.FormValidation |
doCheckIvyFile(java.lang.String value)
Check that the workspace relative path to the ivy.xml file was entered and conforms to basic expectations.
|
void |
doHandleExternalTrigger(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Simulate what would happen internally if a successful build occurred on an IvyBuildTrigger managed project.
|
IvyBuildTrigger.IvyConfiguration[] |
getConfigurations() |
java.lang.String |
getDisplayName()
Implement the Descriptor's display name.
|
boolean |
isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> jobType)
Check if this Descriptor is applicable to the job type.
|
boolean |
isExtendedVersionMatching() |
void |
setConfigurations(IvyBuildTrigger.IvyConfiguration[] configurations) |
void |
setExtendedVersionMatching(boolean extendedVersionMatching) |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic IvyBuildTrigger.IvyConfiguration[] getConfigurations()
@DataBoundSetter public void setConfigurations(IvyBuildTrigger.IvyConfiguration[] configurations)
public boolean isExtendedVersionMatching()
@DataBoundSetter public void setExtendedVersionMatching(boolean extendedVersionMatching)
public java.lang.String getDisplayName()
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Publisher>public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
configure in class hudson.model.Descriptor<hudson.tasks.Publisher>public void doHandleExternalTrigger(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException,
javax.servlet.ServletException
The StaplerRequest parameter must include request parameters org and name
which respectively represent the Ivy module descriptor attributes organisation and module.
Optional request parameters that can be passed on the StaplerRequest include branch and rev
which respectively represent the Ivy module descriptor attributes branch and revision.
These values are used to match against the ModuleDescriptor of Jenkins projects using the IvyBuildTrigger. In the
case that more than one project matches, it is the first match that will win, and only that project will have
its downstream dependencies scheduled for builds. Therefore the caller is wise to provide the most
information in the request to ensure the best possible match. If the trigger descriptor is set to use extended
version matching, then at least one of the optional rev or branch is required on the request.
Note this event trigger does not actually build the matched project in Jenkins. It just schedules builds on downstream
dependent projects. Successfully executing this event trigger requires global Item.BUILD permission on a
secured Jenkins instance.
req - The StaplerRequestrsp - The StaplerResponsejava.io.IOException - IOException on the servlet calljavax.servlet.ServletException - ServletException on the servlet callisExtendedVersionMatching()public hudson.util.FormValidation doCheckIvyConf(@QueryParameter
java.lang.String value)
value - the file pathpublic hudson.util.FormValidation doCheckIvyFile(@QueryParameter
java.lang.String value)
value - the relative pathpublic boolean isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> jobType)
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>jobType - the AbstractProject type to be checked.Project