I have a YAML file:
project_name: my-project
project_version: 1.0
scan_path:
javascript: Core
dotnet: Deadbolt
dotnet: ServiceCatalog
Which I am reading in Jenkins with
data = readYaml file: "Jenkins/config.yml
scan_path = data[scan_path]
however when I check the map it only ever has the last element.
Is my YAML file formatted incorrectly?
When I run "println(scan_path.size())" I just get 1, and
scan_path.each { k, v ->
echo "${k}, ${v}"
just returns "dotnet, ServiceCatalog"