Plugin Structure - electric-cloud/PluginWizard GitHub Wiki
Though it is possible to write all code in plugin steps, it is not recommended. The common structure for the plugin files will look like the following:
- Step code - minimal code for grabbing parameters, calling some underlying library and processing the response.
- Library class - contains the logic of the procedures
- EF Helper - contains functions to work with EF server
To load all the code into step, use preamble:
$[/myProject/scripts/preamble]
EFPlugin efPlugin = new EFPlugin()
...
To add a plugin class to the preamble, add
$[/myProject/scripts/MyClass]
to the scripts/preamble file.
Use groovyProcedureTemplate as a boilerplate.