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

@CompileStatic does not work well in Pipelines

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 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.

            Unassigned Unassigned
            dnusbaum Devin Nusbaum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: