FlowPDF is an CloudBees CD Plugin Development Framework. This tool has been created to make plugin development easier. To use it one should extend this class and define pluginInfo() which should return a Map with following fields:
Type | Name and description |
---|---|
java.util.ArrayList |
configFields An array reference, that represents fields that would be used by plugin as a reference to plugin configurations. |
java.util.ArrayList |
configLocations An array reference with locations of plugin configurations. |
Log |
log Log instance for user purposes. |
java.util.Map<java.lang.String, java.lang.Object> |
pluginValues Map with information about the plugin |
Constructor and description |
---|
FlowPlugin
() Constructor |
Type Params | Return Type | Name and description |
---|---|---|
|
Context |
getContext() This method returns already created L |
|
java.lang.String |
getFlowPDFVersion() Determines current version of the flowpdf-groovy-lib |
|
java.lang.String |
getPluginName() Accessor for the pluginName variable |
|
java.lang.String |
getPluginProjectName() Builds name of the plugin project |
|
java.lang.String |
getPluginProjectPath() Builds path to the plugin project |
|
Context |
newContext() Creates Context object. |
|
java.util.Map<java.lang.String, java.lang.Object> |
pluginInfo() This method should return information about a plugin |
|
void |
runStep(java.lang.String procedureName, java.lang.String stepName, java.lang.String methodName) This method is responsible for collecting the context information and running the procedure's step |
|
void |
showEnvironmentInfo() Logs environment information |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
An array reference, that represents fields that would be used by plugin as a reference to plugin configurations. For example, one could use ['config', 'configName'] to say that config name could be found in these parameter values. This list will be used from left to right, so, in example above configName will be used only if there is no procedure parameter with name 'config'.
An array reference with locations of plugin configurations. In all new plugins it will be set to ['ec_plugin_cfgs']. Precedence is the same as in configFields.
Log instance for user purposes. Log level will be auto adjusted according to the configuration 'debuglevel' parameter.
Map with information about the plugin
This method returns already created L
Determines current version of the flowpdf-groovy-lib
Accessor for the pluginName variable
Builds name of the plugin project
Builds path to the plugin project
Creates Context object. Does not require any additional parameters. Please, note, that this function always creates a new context object. If you want to use already existing context object, consider to use a FlowPlugin.getContext method.
This method should return information about a plugin
This method is responsible for collecting the context information and running the procedure's step
procedureName
- name of the procedure we are running instepName
- name of the step we are running inmethodName
- name of the step method, defined in the FlowPlugin ancestorLogs environment information
Groovy Documentation