Skip to content

Conversation

@Jesus-Osuna-M
Copy link

No description provided.

Copilot AI review requested due to automatic review settings November 6, 2025 18:53
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the DataKeyFilterMultiLines plugin to handle multi-line input that arrives in a single event, particularly for AWS SSM executor compatibility. The main change splits newline-containing input into separate lines for processing when capturing multiple key-values.

  • Adds logic to split newline-containing strings and process each line individually when captureMultipleKeysValues is enabled
  • Refactors extraction logic into a new extractSingleLine method
  • Adds test cases for AWS SSM behavior (multiple lines in single event) and mixed scenarios

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/main/groovy/com/rundeck/plugin/DataKeyFilterMultiLines.groovy Refactored extractKeyValue to split multi-line input and added new extractSingleLine method for single-line processing
src/test/groovy/com/rundeck/plugin/DataKeyFilterMultiLinesSpec.groovy Added test cases for AWS SSM behavior with multi-line events and mixed input scenarios
build.gradle Configured test task to use JUnit Platform for Spock framework compatibility

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant