Camunda Deployment Maven Plugin (Rest API)

Hey!

Wanted to share a quick community tool I have put together.

This is a maven plugin that will enable someone to easily deploy to a Camunda instance through the Camunda /deployment/create API endpoint.

The plugin detects all files inside of a directory and will POST these to the camunda instance defined within the plugin configuration.

Really great if using unit testing as your Build-Test-Deploy flow. I put this together to use with the Spock Unit Testing that we use: GitHub - DigitalState/Camunda-Spock-Testing: Spock Framework Specification Testing / Unit Testing for Camunda BPM Engine/Processes

The configuration of the plugin gives you a lot of options for changing the features, and you can completely replace the executing script (groovy) with your own. So the “possibilities are endless” :wink:

Would be great to get some community feedback on usage and configurations.

There are still some configurations to make configurable, but the majority is in place.

The Readme has full details on usage through the command line and through tools like IntelliJ

2 Likes

Provided some updates for more configuration options:

                <configuration>
                    <host>http://localhost:8081</host>
                    <apiPath>/engine-rest</apiPath>
                    <deploymentFilesDir>${project.build.directory}/deploymentFiles</deploymentFilesDir>
                    <scriptPath>scripts/myScript.groovy</scriptPath>  <!-- Path is relative to pom.xml unless full path is provided-->
                    <additionalConfigs>
                        <deploymentName>testDeployment123</deploymentName>
                        <duplicateFiltering>false</duplicateFiltering>
                        <deployChangedOnly>false</deployChangedOnly>
                        <deploymentSource>MyLocalComputer</deploymentSource>
                        <tenantId>someTenantName</tenantId>
                    </additionalConfigs>
                </configuration>