Hi,
What is happening here is that you are passing all the aggregated stage values to each item in your pipeline. In this case, you have duplicated values for:
- “devops”
- “java”
- “build”
- “artifact-deploy”
This is something you can confirm via console using the command:
flatten([for pipeline in local.pipelines : pipeline.stages.*.name])
Would each.value.stages work for you in this case? How does your module expect to receive the values? As a map?