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

Details

    Description

      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)

      Attachments

        Issue Links

          Activity

            reakaleek Jan Calanog created issue -
            reakaleek Jan Calanog made changes -
            Field Original Value New Value
            Description 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)

            ```
            When trying to use the function `readYaml` on a yaml file with some aliases the following error pops up.{*}{*}
            {code:java}
            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){code}
            rsandell rsandell made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            rsandell rsandell made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            danielbeck Daniel Beck made changes -
            Link This issue is duplicated by JENKINS-68984 [ JENKINS-68984 ]

            People

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

              Dates

                Created:
                Updated: