DSLD / GDSL needs to escape single quotes in documentation

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

XMLWordPrintable

      The Pipeline Model Definition plugin has a step whose display name includes single quotes.

      This causes a syntax error when using the generated DSLD / GDSL, as the single quotes (here, around "FOO=bar") are unescaped when the doc field is written:

      method(name: 'envVarsForTool', type: 'Object', namedParams: [parameter(name: 'toolId', type: 'java.lang.String'), parameter(name: 'toolVersion', type: 'java.lang.String'), ], doc: 'Fetches the environment variables for a given tool in a list of 'FOO=bar' strings suitable for the withEnv step.')
      

            Assignee:
            Rishi Manidhar
            Reporter:
            Christopher Orr
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: