@Extension(ordinal=1000.0) public static final class RundeckNotifier.RundeckDescriptor extends BuildStepDescriptor<Publisher>
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
clazz
Constructor and Description |
---|
RundeckDescriptor() |
Modifier and Type | Method and Description |
---|---|
void |
addRundeckInstance(RundeckInstance instance) |
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json) |
FormValidation |
doCheckJobIdentifier(String jobIdentifier,
String rundeckInstance,
String user,
Secret password,
Secret token,
Item item)
check valid job
|
FormValidation |
doDisplayCacheStatistics() |
FormValidation |
doInvalidateCache() |
static org.rundeck.client.api.model.JobItem |
findJob(String jobIdentifier,
String rundeckInstanceName,
RundeckManager rundeckInstance)
Find a
JobItem with the given identifier using internal cache if possible. |
static org.rundeck.client.api.model.JobItem |
findJobUncached(String jobIdentifier,
RundeckManager rundeckClient) |
protected XmlFile |
getConfigFile() |
String |
getDisplayName() |
RundeckInstance |
getRundeckInstance(String name) |
RundeckInstance[] |
getRundeckInstances() |
RundeckJobCacheConfig |
getRundeckJobCacheConfig() |
RundeckManager |
getRundeckJobInstance(String rundeckInstanceName,
String jobUser,
String jobPassword,
String jobToken)
get RundeckClient if optional user is given
|
boolean |
isApplicable(Class<? extends AbstractProject> jobType) |
void |
load() |
Publisher |
newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
protected Object |
readResolve() |
void |
setRundeckBuilder(RundeckInstanceBuilder rundeckBuilder) |
void |
setRundeckInstances(RundeckInstance[] instances) |
filter
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public void load()
load
in class Descriptor<Publisher>
public void setRundeckBuilder(RundeckInstanceBuilder rundeckBuilder)
protected Object readResolve()
protected XmlFile getConfigFile()
getConfigFile
in class Descriptor<Publisher>
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
configure
in class Descriptor<Publisher>
Descriptor.FormException
public Publisher newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
newInstance
in class Descriptor<Publisher>
Descriptor.FormException
public FormValidation doDisplayCacheStatistics()
public FormValidation doInvalidateCache()
public FormValidation doCheckJobIdentifier(@QueryParameter(value="jobIdentifier") String jobIdentifier, @QueryParameter(value="rundeckInstance") String rundeckInstance, @QueryParameter(value="jobUser") String user, @QueryParameter(value="jobPassword") Secret password, @QueryParameter(value="jobToken") Secret token, @AncestorInPath Item item)
public static org.rundeck.client.api.model.JobItem findJob(String jobIdentifier, String rundeckInstanceName, RundeckManager rundeckInstance)
JobItem
with the given identifier using internal cache if possible.jobIdentifier
- either a simple ID, an UUID or a reference (project:group/name)rundeckInstanceName
- Rundeck instance namerundeckInstance
- Rundeck client instanceJobItem
found, or null if not foundpublic static org.rundeck.client.api.model.JobItem findJobUncached(String jobIdentifier, RundeckManager rundeckClient)
public boolean isApplicable(Class<? extends AbstractProject> jobType)
isApplicable
in class BuildStepDescriptor<Publisher>
public String getDisplayName()
getDisplayName
in class Descriptor<Publisher>
public RundeckInstance getRundeckInstance(String name)
public RundeckManager getRundeckJobInstance(String rundeckInstanceName, String jobUser, String jobPassword, String jobToken)
rundeckInstanceName
- rundeck instancejobUser
- job userjobPassword
- job user passwordjobToken
- job tokenpublic void addRundeckInstance(RundeckInstance instance)
public RundeckInstance[] getRundeckInstances()
public void setRundeckInstances(RundeckInstance[] instances)
public RundeckJobCacheConfig getRundeckJobCacheConfig()
Copyright © 2016–2022. All rights reserved.