-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
Jenkins 2.277.2, Pipeline Utility Steps 2.7.1
readYaml replaces 'on' key by true:
pipeline { agent { label "linux" } stages { stage('Main') { steps { script { sh 'echo "on: abc" > x.yaml' def x = readYaml file: 'x.yaml' echo "x=$x" } } } } }
Output:
+ echo 'on: abc' [Pipeline] readYaml [Pipeline] echo x=[true:abc]