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

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

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

            abayer Andrew Bayer
            khobbits Robert Gornall
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: