This is a template for creating a ReportPortal plugin.
This guide provides step-by-step instructions on how to implement a Report Portal application plugin.
Make sure you have the following software installed:
- JDK version 21
- Gradle
This template uses an event-driven architecture. You can implement your custom logic by creating event handlers.
TemplatePluginExtension: An extension that includes a listener for thepluginLoadedevent. Use this if you need to perform actions when the plugin is loaded, for example, creating a default integration.
Note: If your plugin does not need to handle events, you can remove the event listener and the DisposableBean
implementation from the TemplatePluginExtension class.
Modify the gradle.properties file to set the version number and other properties of your plugin.
Note: Versions in branches other than the main branch are not release versions and must be updated following the
pattern: NEXT_RELEASE_VERSION-SNAPSHOT-NUMBER_OF_BUILD.
(Example: 6.0.1-SNAPSHOT-1)
To build the plugin, run the following command in your terminal:
./gradlew build
This will generate a .jar file in the build/libs directory. This file is your plugin package.
- Navigate to the Administrate section in your ReportPortal instance.
- Go to the Plugins tab.
- Click on the Upload button and select the
.jarfile generated in the previous step. - After the plugin is uploaded, it will appear in the list of plugins.
Bundled UI (webpack, metadata.json, extension points): see ui/README.md.