Package hudson.plugins.tics
Class TicsPublisher.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<T>
-
- hudson.tasks.BuildStepDescriptor<Publisher>
-
- hudson.plugins.tics.TicsPublisher.DescriptorImpl
-
- Enclosing class:
- TicsPublisher
@Extension public static class TicsPublisher.DescriptorImpl extends BuildStepDescriptor<Publisher>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
Fields Modifier and Type Field Description String
globalViewerUrl
-
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
configure(org.kohsuke.stapler.StaplerRequest staplerRequest, net.sf.json.JSONObject json)
FormValidation
doCheckGlobalViewerUrl(Item item, String value)
Form validation of globalViewerUrl.FormValidation
doCheckTicsPath(AbstractProject<?,?> project, TaskListener listener, String value, String viewerUrl, String credentialsId)
FormValidation
doCheckViewerUrl(AbstractProject<?,?> project, TaskListener listener, String value)
Form validation of viewerUrl.ListBoxModel
doFillCredentialsIdItems(Item context, String credentialsId)
Called by Jenkins to fill credentials dropdown listString
getDisplayName()
String
getViewerUrl()
Referenced inglobal.jelly
.boolean
isApplicable(Class<? extends AbstractProject> jobType)
-
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
-
Methods inherited from class hudson.model.Descriptor
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, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Field Detail
-
globalViewerUrl
public String globalViewerUrl
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<Publisher>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest staplerRequest, net.sf.json.JSONObject json) throws Descriptor.FormException
- Overrides:
configure
in classDescriptor<Publisher>
- Throws:
Descriptor.FormException
-
doCheckViewerUrl
@POST public FormValidation doCheckViewerUrl(@AncestorInPath AbstractProject<?,?> project, @AncestorInPath TaskListener listener, @QueryParameter String value) throws IOException, InterruptedException
Form validation of viewerUrl. Uses Jenkinks naming convention "doCheckXXXXX" to bind to entry field. Further reading: https://wiki.jenkins-ci.org/display/JENKINS/Form+Validation- Throws:
IOException
InterruptedException
-
doCheckGlobalViewerUrl
@POST public FormValidation doCheckGlobalViewerUrl(@AncestorInPath Item item, @QueryParameter String value)
Form validation of globalViewerUrl.
-
doCheckTicsPath
@POST public FormValidation doCheckTicsPath(@AncestorInPath AbstractProject<?,?> project, @AncestorInPath TaskListener listener, @QueryParameter String value, @QueryParameter String viewerUrl, @QueryParameter String credentialsId) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
isApplicable
public boolean isApplicable(Class<? extends AbstractProject> jobType)
- Specified by:
isApplicable
in classBuildStepDescriptor<Publisher>
-
getViewerUrl
public String getViewerUrl()
Referenced inglobal.jelly
.
-
doFillCredentialsIdItems
public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item context, @QueryParameter String credentialsId)
Called by Jenkins to fill credentials dropdown list
-
-