This plugin captures Multiline Regex Key/Value data using a simple text format from a regular expression.
- Java: 11 or later
- Gradle: 8.x (included via Gradle Wrapper)
- Rundeck: 5.16.0 or later
- Groovy: 4.0.x (automatically managed by Gradle)
To build this plugin from source:
# Clean and build the plugin
./gradlew clean build
# The built JAR will be available in build/libs/For development, ensure you have:
- JDK 11 or later installed
- Git for version control
- Download the latest release JAR from the releases page
- Copy the JAR to your Rundeck plugins directory:
cp multiline-regex-datacapture-filter-X.X.X.jar $RUNDECK_HOME/libext/ - Restart Rundeck
After building the plugin:
# Copy the built JAR to Rundeck's plugin directory
cp build/libs/multiline-regex-datacapture-filter-*.jar $RUNDECK_HOME/libext/
# Restart Rundeck to load the pluginNote: Replace $RUNDECK_HOME with your actual Rundeck installation directory (typically /var/lib/rundeck on Linux or the installation directory on other systems).
- Add a global o a step
Multiline Regex Data Capturefilter - Set the regex pattern to use, eg
^(.+?)\s*=\s*(.+) - Set a name data (optional). If the pattern does not capture a key value, this parameter is required (example 2)
- You can hide the original log output (checking the flag
Hide Output) - You can print the result of the match (checking the flag
Log Data)
- Example 1: Capture a key/value list (see examples/iterate-a-list.xml)
- Example 2: Capture the result of a
ls -lcommand (see examples/capture-ls-command.xml)
- Example 3: Capture the result of a SQL query and iterate the captured variable using another step (see examples/capture-ls-command.xml)
Run the test suite:
./gradlew test- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Ensure tests pass (
./gradlew test) - Ensure the build works (
./gradlew build) - Commit your changes (
git commit -am 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the terms specified in the LICENSE file.
This project uses automated security scanning via Snyk to identify and address potential vulnerabilities in dependencies.





