@Extension
public static final class JobcopyBuilder.DescriptorImpl
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>
| Constructor and Description |
|---|
JobcopyBuilder.DescriptorImpl() |
| Modifier and Type | Method and Description |
|---|---|
hudson.util.FormValidation |
doCheckFromJobName(hudson.model.AbstractProject<?,?> project,
String fromJobName)
Validate "From Job Name" field.
|
hudson.util.FormValidation |
doCheckJobName(hudson.model.AbstractProject<?,?> project,
String jobName,
boolean warnIfExists,
boolean warnIfNotExists)
Validate "From Job Name" or "To Job Name" field.
|
hudson.util.FormValidation |
doCheckToJobName(hudson.model.AbstractProject<?,?> project,
String toJobName,
boolean overwrite)
Validate "To Job Name" field.
|
hudson.util.ComboBoxModel |
doFillFromJobNameItems(hudson.model.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.
|
hudson.DescriptorExtensionList<JobcopyOperation,hudson.model.Descriptor<JobcopyOperation>> |
getJobcopyOperationDescriptors()
Returns all the available JobcopyOperation.
|
boolean |
isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
Test whether this build step can be applied to the specified job type.
|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, 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 String getDisplayName()
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Builder>Descriptor.getDisplayName()public boolean isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>jobType - the type of the job to be tested.BuildStepDescriptor.isApplicable(java.lang.Class)public hudson.DescriptorExtensionList<JobcopyOperation,hudson.model.Descriptor<JobcopyOperation>> getJobcopyOperationDescriptors()
public hudson.util.ComboBoxModel doFillFromJobNameItems(@AncestorInPath
hudson.model.AbstractProject<?,?> project)
project - the current jobpublic hudson.util.FormValidation doCheckJobName(hudson.model.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 hudson.util.FormValidation doCheckFromJobName(@AncestorInPath
hudson.model.AbstractProject<?,?> project,
@QueryParameter
String fromJobName)
project - the current jobfromJobName - the input to "From Job Name"public hudson.util.FormValidation doCheckToJobName(@AncestorInPath
hudson.model.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. All rights reserved.