Skip to content

ci: improve pipeline parameters defaults handling#14

Merged
pierantoniomerlino merged 1 commit into
developfrom
feat/improve_default_handling
Apr 15, 2026
Merged

ci: improve pipeline parameters defaults handling#14
pierantoniomerlino merged 1 commit into
developfrom
feat/improve_default_handling

Conversation

@mattdibi

@mattdibi mattdibi commented Apr 14, 2026

Copy link
Copy Markdown
Member

The current main branch only implements shallow merging of the parameters provided by the user and the default parameters.

This means that, if a user calls the pipeline with:

continuousIntegrationPipeline( 
    toolchain: [ jdk: "temurin-jdk21-latest" ]
)

the pipelineParams.toolchain.maven variable will be set to null instead of falling back to the default.

This PR introduces a deepMerge function which handles the correct merging of the two maps and therefore results in a more logical behaviour and a better user experience.

@pierantoniomerlino
pierantoniomerlino merged commit 88d4365 into develop Apr 15, 2026
5 checks passed
@pierantoniomerlino
pierantoniomerlino deleted the feat/improve_default_handling branch April 15, 2026 12:16
pierantoniomerlino added a commit that referenced this pull request Apr 15, 2026
@pierantoniomerlino
pierantoniomerlino restored the feat/improve_default_handling branch April 15, 2026 12:18
@mattdibi
mattdibi deleted the feat/improve_default_handling branch April 15, 2026 14:20
pierantoniomerlino pushed a commit that referenced this pull request Apr 15, 2026
…ps] (#15)

ci: improve pipeline parameters defaults handling (#14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants