Product Selector

Fusion 5.12
    Fusion 5.12

    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

    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

    1. Navigate to System > Blobs.

    2. Click Add.

    3. Select Query Stage Plugin.

    4. Click Browse…​ and select your plugin file.

    5. 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