Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-68830

readYaml fails with org.yaml.snakeyaml.error.YAMLException: Number of aliases for non-scalar nodes exceeds the specified max=50

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.346.1
      Pipeline Utility Steps 2.13.0

      When trying to use the function `readYaml` on a yaml file with some aliases the following error pops up.{}

      09:58:40 org.yaml.snakeyaml.error.YAMLException: Number of aliases for non-scalar nodes exceeds the specified max=50*09:58:40* at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:172)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:314)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:305)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:286)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:188)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:245)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:186)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:314)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:305)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:286)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:188)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:314)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:305)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:286)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:188)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:314)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:305)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:286)09:58:40 at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:188)09:58:40 at org.yaml.snakeyaml.composer.Composer.getNode(Composer.java:115)09:58:40 at org.yaml.snakeyaml.constructor.BaseConstructor.getData(BaseConstructor.java:135)09:58:40 at org.yaml.snakeyaml.Yaml$1.next(Yaml.java:514)09:58:40 at org.jenkinsci.plugins.pipeline.utility.steps.conf.ReadYamlStep$Execution.doRun(ReadYamlStep.java:126)09:58:40 at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepExecution.run(AbstractFileOrTextStepExecution.java:29)09:58:40 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)09:58:40 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)09:58:40 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)09:58:40 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)09:58:40 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)09:58:40 at java.base/java.lang.Thread.run(Thread.java:829)

            rsandell rsandell
            reakaleek Jan Calanog
            Votes:
            5 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: