@CompileStatic does not work well in Pipelines

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: workflow-cps-plugin
    • None

      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
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: