From: Erik Brakkee Date: Sun, 10 Nov 2024 16:48:10 +0000 (+0100) Subject: specified LoaderOptions. X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=bba36bda8cbefa4594c6e3c95129930b88756f32;p=pipelinelib specified LoaderOptions. --- diff --git a/src/org/wamblee/jenkins/pipelinelib/MyYaml.groovy b/src/org/wamblee/jenkins/pipelinelib/MyYaml.groovy index d9b3708..ccae43d 100644 --- a/src/org/wamblee/jenkins/pipelinelib/MyYaml.groovy +++ b/src/org/wamblee/jenkins/pipelinelib/MyYaml.groovy @@ -1,5 +1,6 @@ package org.wamblee.jenkins.pipelinelib +import org.yaml.snakeyaml.LoaderOptions @Grab('org.yaml:snakeyaml:2.3') import org.yaml.snakeyaml.Yaml @@ -14,7 +15,7 @@ class MyYaml { private final Yaml parser MyYaml() { - parser = new Yaml(new SafeConstructor()) + parser = new Yaml(new SafeConstructor( new LoaderOptions())) } String merge(List yamls) {