readYaml aborts silently

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      I (https://github.com/opensearch-project/opensearch-build)Ā have some jenkins pipelines that rely on YAML manifest files. So they load much YAML. I added classes such asĀ ManifestĀ into groovy code, in which I tried to load such YAML. Given that it's not trivial to add external libraries to Jenkins (os is it? how do I?). My simplest attempt was to useĀ readYamlĀ provided by the pipeline, like so:

      class Manifest implements Serializable {
          def data
          Manifest(steps, String filename) {
              steps.echo "this works"
              this.data = steps.readYaml(file: filename)
              // this line is never reached
          }
      }
      

      This aborts the script without error in my Jenkins. No security problem, no exception, nothing. Just bails.

            Assignee:
            vjuranek
            Reporter:
            Daniel Doubrovkine
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: