griddynamics / mpl

[IT-36925] Jenkins Shared Modular Pipeline Library

Home Page:https://blog.griddynamics.com/developing-a-modular-pipeline-library-to-improve-devops-collaboration/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Config is not provided if modules is not specified

sparshev opened this issue · comments

The issue is here: https://github.com/griddynamics/mpl/blob/master/src/com/griddynamics/devops/mpl/MPLManager.groovy#L84

config.modules ? Helper.mergeMaps(config.subMap(config.keySet()-'modules'), (config.modules[name] ?: [:])) : [:]

So when config.modules is empty (no keys inside) or no modules is set at all - it will return just an empty map.