Build and Deploy A Query Stage Plugin
This topic explains how to build and deploy a custom query stage plugin that you developed using the Query Stage SDK.
Fusion also comes with a number of built-in query stages that you can access using the Query Workbench.
Prerequisites
-
Clone the repository.
-
Develop your plugin using the Query Stage SDK library.
1. Build the plugin stage
From the main folder, call:
./gradlew -p examples/sample-plugin-stage assemblePlugin
Substitute the path to your project.
This creates a plugin .zip
file (with required manifest file) inside the build/libs
folder.
2. Deploy the stage
You can choose from several different ways to deploy the sample plugin stage:
After successful deployment, new stages should be visible in the Stages
list in the Fusion Query Pipelines UI.
Upload it to the blob store
-
Navigate to System > Blobs.
-
Click Add.
-
Select Query Stage Plugin.
-
Click Browse… and select your plugin file.
-
Click Upload
Deploy it using gradle
./gradlew -p examples/sample-plugin-stage deploy -PfusionUser=[user] -PfusionPassword=[password]
Deploy it with the REST API
curl -u [user]:[password] -X PUT -H "Content-Type:application/zip" --data-binary @sample-plugin-stage-0.0.1.zip https://<fusion-host>/api/query-stage-plugins