@CompileStatic does not work well in Pipelines

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

XMLWordPrintable

      Various users have reported issues with {@CompileStatic}} in Pipelines. See https://github.com/cloudbees/groovy-cps/issues/87 and https://github.com/cloudbees/groovy-cps/issues/88.

      Specifically:

      • @NonCPS and @CompileStatic cannot be used together (perhaps related to the sandbox transformation?)
      • @CompileStatic cannot be used on a class, only on individual methods.

            Assignee:
            Unassigned
            Reporter:
            Devin Nusbaum
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: