@Extension public static final class JobcopyBuilder.DescriptorImpl extends BuildStepDescriptor<Builder>
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Selfclazz| Constructor and Description |
|---|
DescriptorImpl() |
| Modifier and Type | Method and Description |
|---|---|
FormValidation |
doCheckFromJobName(AbstractProject<?,?> project,
String fromJobName)
Validate "From Job Name" field.
|
FormValidation |
doCheckJobName(AbstractProject<?,?> project,
String jobName,
boolean warnIfExists,
boolean warnIfNotExists)
Validate "From Job Name" or "To Job Name" field.
|
FormValidation |
doCheckToJobName(AbstractProject<?,?> project,
String toJobName,
boolean overwrite)
Validate "To Job Name" field.
|
ComboBoxModel |
doFillFromJobNameItems(AbstractProject<?,?> project)
Returns the list of jobs.
|
String |
getDisplayName()
Returns the display name
Displayed in the "Add build step" dropdown in a job configuration page.
|
DescriptorExtensionList<JobcopyOperation,Descriptor<JobcopyOperation>> |
getJobcopyOperationDescriptors()
Returns all the available JobcopyOperation.
|
boolean |
isApplicable(Class<? extends AbstractProject> jobType)
Test whether this build step can be applied to the specified job type.
|
filteraddHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, 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, toMappublic String getDisplayName()
getDisplayName in class Descriptor<Builder>Descriptor.getDisplayName()public boolean isApplicable(Class<? extends AbstractProject> jobType)
isApplicable in class BuildStepDescriptor<Builder>jobType - the type of the job to be tested.BuildStepDescriptor.isApplicable(java.lang.Class)public DescriptorExtensionList<JobcopyOperation,Descriptor<JobcopyOperation>> getJobcopyOperationDescriptors()
public ComboBoxModel doFillFromJobNameItems(@AncestorInPath AbstractProject<?,?> project)
project - the current jobpublic FormValidation doCheckJobName(AbstractProject<?,?> project, String jobName, boolean warnIfExists, boolean warnIfNotExists)
| jobName | warnIfExists | warnIfNotExists | Returns |
|---|---|---|---|
| Blank | any | any | error |
| value containing variables | any | any | ok |
| existing job | false | any | ok |
| existing job | true | any | warning |
| non existing job | any | false | ok |
| non existing job | any | true | warning |
project - the current jobjobName - the name of the job to checkwarnIfExists - returns warning if the job existswarnIfNotExists - returns warning if the job not existspublic FormValidation doCheckFromJobName(@AncestorInPath AbstractProject<?,?> project, @QueryParameter String fromJobName)
project - the current jobfromJobName - the input to "From Job Name"public FormValidation doCheckToJobName(@AncestorInPath AbstractProject<?,?> project, @QueryParameter String toJobName, @QueryParameter boolean overwrite)
project - the current jobtoJobName - the input to "To Job Name"overwrite - the input to "Overwrite"Copyright © 2016–2023. All rights reserved.