|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.Descriptor<T>
hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
hudson.ivy.IvyBuildTrigger.DescriptorImpl
public static final class IvyBuildTrigger.DescriptorImpl
The descriptor implementation of this trigger
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
|---|
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType |
| Field Summary |
|---|
| Fields inherited from class hudson.model.Descriptor |
|---|
clazz |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Method Summary | |
|---|---|
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 Descritor'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()
|
| Methods inherited from class hudson.tasks.BuildStepDescriptor |
|---|
filter |
| Methods inherited from class hudson.model.Descriptor |
|---|
calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getJsonSafeClassName, getPropertyType, getPropertyType, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, save, toArray, toList, toMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public IvyBuildTrigger.IvyConfiguration[] getConfigurations()
public boolean isExtendedVersionMatching()
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
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 Hudson 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 Hudson. It just schedules builds on downstream
dependent projects. Successfully executing this event trigger requires global Item.BUILD permission on a
secured Hudson instance.
req - The StaplerRequestrsp - The StaplerResponse
java.io.IOException - IOException on the servlet call
javax.servlet.ServletException - ServletException on the servlet callisExtendedVersionMatching()
public hudson.util.FormValidation doCheckIvyConf(@QueryParameter
java.lang.String value)
req - the file path
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||