public abstract class DeploySourceDescriptor extends Descriptor<DeploySource>
DeploySource Descriptor instances.Descriptor.FormException, Descriptor.PropertyType, Descriptor.Selfclazz| Constructor and Description |
|---|
DeploySourceDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
protected FormValidation |
delegatePathValidationToTarget(String pathName,
String targetDescriptorId,
FilePath path)
Delegates the final path validation to the
DeployTarget. |
protected Job |
findJob()
If the stapler request ancestor is a Run or one of the deploy now actions, will return
null,
otherwise returns the job. |
protected Run |
findRun()
If the stapler request ancestor is a Run or one of the deploy now actions, will return
null,
otherwise returns the run. |
boolean |
isApplicable(Class<? extends AbstractProject> jobType)
Returns
true if and only if this DeploySource is relevant to the job type |
boolean |
isDirectorySource()
Returns
true if and only if this DeploySource can return directories. |
boolean |
isFileSource()
Returns
true if and only if this DeploySource can return files. |
static boolean |
isMavenJob(Class<? extends AbstractProject> jobType)
Returns
true if and only if the supplied type is a Maven job type class. |
boolean |
isSupported(DeploySourceOrigin... origins)
Returns
true if and only if this DeploySource can operate from at least one of the specified
origins. |
abstract boolean |
isSupported(DeploySourceOrigin origin)
Returns
true if and only if this DeploySource can operate from the specified origin. |
DeploySource |
newInstance()
Create a new default instance of the
DeploySource |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, 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 static boolean isMavenJob(Class<? extends AbstractProject> jobType)
true if and only if the supplied type is a Maven job type class.jobType - the job type.true if and only if the supplied type is a Maven job type class.public boolean isApplicable(@CheckForNull
Class<? extends AbstractProject> jobType)
true if and only if this DeploySource is relevant to the job typejobType - the type of job.true if and only if this DeploySource is relevant to the job typepublic abstract boolean isSupported(@CheckForNull
DeploySourceOrigin origin)
true if and only if this DeploySource can operate from the specified origin.origin - the origin.true if and only if this DeploySource can operate from the specified origin.public boolean isSupported(@CheckForNull
DeploySourceOrigin... origins)
true if and only if this DeploySource can operate from at least one of the specified
origins.origins - the origins.true if and only if this DeploySource can operate from at least one of the specified
originspublic boolean isFileSource()
true if and only if this DeploySource can return files.true if and only if this DeploySource can return files.public boolean isDirectorySource()
true if and only if this DeploySource can return directories.true if and only if this DeploySource can return directories.@CheckForNull protected Run findRun()
null,
otherwise returns the run.null if there is none.@CheckForNull protected Job findJob()
null,
otherwise returns the job.null if there is none.public DeploySource newInstance()
DeploySourceprotected FormValidation delegatePathValidationToTarget(@CheckForNull String pathName, @CheckForNull String targetDescriptorId, @CheckForNull FilePath path) throws IOException, InterruptedException
DeployTarget.targetDescriptorId - the class name of the DeployTarget to delegate to.path - the path we believe to be OK.IOExceptionInterruptedExceptionCopyright © 2016–2022. All rights reserved.