T - the build step typepublic abstract class AbstractCloudFoundryPushDescriptor<T extends hudson.tasks.BuildStep & hudson.model.Describable<T>>
extends hudson.tasks.BuildStepDescriptor<T>
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_INSTANCES
Default number of instances to deploy (1).
|
static int |
DEFAULT_MEMORY
Default memory to allocate (512mb)
|
static String |
DEFAULT_STACK
Default stack of the target.
|
static int |
DEFAULT_TIMEOUT
Default application startup timeout (60 seconds).
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCloudFoundryPushDescriptor()
Creates a new descriptor.
|
protected |
AbstractCloudFoundryPushDescriptor(Class<? extends T> clazz)
Creates a new descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
hudson.util.FormValidation |
doCheckAppName(String value)
Marks the app name as a required parameter
|
hudson.util.FormValidation |
doCheckCloudSpace(String value)
Marks the cloud space as a required parameter
|
hudson.util.FormValidation |
doCheckCredentialsId(String value)
Marks credentials as a required parameter
|
hudson.util.FormValidation |
doCheckHostname(String value)
Marks the hostname as a required parameter
|
hudson.util.FormValidation |
doCheckInstances(String value)
Marks the number of instances as a required positive integer
|
hudson.util.FormValidation |
doCheckMemory(String value)
Marks the memory allocation as a required positive integer
|
hudson.util.FormValidation |
doCheckOrganization(String value)
Marks the organization as a required parameter
|
hudson.util.FormValidation |
doCheckPluginTimeout(String value)
Marks the plugin timeout as a required positive integer
|
hudson.util.FormValidation |
doCheckTarget(String value)
Verifies the URL format of the cloudfoundry target
|
hudson.util.FormValidation |
doCheckTimeout(String value)
Marks the application timeout as a required positive integer
|
hudson.util.ListBoxModel |
doFillCredentialsIdItems(hudson.model.ItemGroup context,
String target)
This method is called to populate the credentials list on the Jenkins config page.
|
hudson.util.FormValidation |
doTestConnection(hudson.model.ItemGroup context,
String target,
String credentialsId,
String organization,
String cloudSpace,
boolean selfSigned)
This method is called when the "Test Connection" button is clicked on the Jenkins config page.
|
String |
getDisplayName() |
boolean |
isApplicable(Class<? extends hudson.model.AbstractProject> jobType) |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, 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 static final int DEFAULT_MEMORY
public static final int DEFAULT_INSTANCES
public static final int DEFAULT_TIMEOUT
public static final String DEFAULT_STACK
protected AbstractCloudFoundryPushDescriptor(Class<? extends T> clazz)
clazz - the specific class being describedprotected AbstractCloudFoundryPushDescriptor()
public boolean isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
public String getDisplayName()
public hudson.util.ListBoxModel doFillCredentialsIdItems(@AncestorInPath
hudson.model.ItemGroup context,
@QueryParameter(value="target")
String target)
context - the contexttarget - the targetpublic hudson.util.FormValidation doTestConnection(@AncestorInPath
hudson.model.ItemGroup context,
@QueryParameter(value="target")
String target,
@QueryParameter(value="credentialsId")
String credentialsId,
@QueryParameter(value="organization")
String organization,
@QueryParameter(value="cloudSpace")
String cloudSpace,
@QueryParameter(value="selfSigned")
boolean selfSigned)
context - the contexttarget - the cloudfoundry targetcredentialsId - the ID of the jenkins credentials to useorganization - the cloudfoundry organizationcloudSpace - the cloudfoundry spaceselfSigned - true to ignore ssl validation errorspublic hudson.util.FormValidation doCheckTarget(@QueryParameter
String value)
value - the value to checkpublic hudson.util.FormValidation doCheckCredentialsId(@QueryParameter
String value)
value - the valuepublic hudson.util.FormValidation doCheckOrganization(@QueryParameter
String value)
value - the valuepublic hudson.util.FormValidation doCheckCloudSpace(@QueryParameter
String value)
value - the valuepublic hudson.util.FormValidation doCheckPluginTimeout(@QueryParameter
String value)
value - the valuepublic hudson.util.FormValidation doCheckMemory(@QueryParameter
String value)
value - the valuepublic hudson.util.FormValidation doCheckInstances(@QueryParameter
String value)
value - the valuepublic hudson.util.FormValidation doCheckTimeout(@QueryParameter
String value)
value - the valuepublic hudson.util.FormValidation doCheckAppName(@QueryParameter
String value)
value - the valuepublic hudson.util.FormValidation doCheckHostname(@QueryParameter
String value)
value - the valueCopyright © 2016–2018. All rights reserved.