Version 1.1.1 of Pipeline Model Definition plugin does not allow triple quoted strings.

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

XMLWordPrintable

      When using declarative pipelines, and defining environment variables to be multi line strings using triple quotes ('''), since 1.1.1, the pipeline fails to parse.

      Example input:

      https://gist.github.com/khobbits/e60a0b086fd73e6ea8ef64175dce0ab1

      Stack trace & error:

      https://gist.github.com/khobbits/8d7f0851fd3410d3369aacea1f896ad7

      Error Extract:

      hudson.remoting.ProxyException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      Script8.groovy: 1: expecting anything but ''\n''; got it anyway @ line 1, column 14.
      "STACK_INFO={

      Possibly related to JENKINS-42771

            Assignee:
            Andrew Bayer
            Reporter:
            Robert Gornall
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: