When attempting to execute a pipeline that loads a library written in Groovy I receive the following exception:

      Unsupported expression for CPS transformation @ line -1, column -1
      

      The Groovy class that is referenced is a simple POGO with the class-level annotation

       @EqualsAndHashCode 

      . Removing the annotation resolves the exception for that class.

      This is a major problem with the plugin and it almost makes it unusable. For any non-trivial library it will most likely make use of Groovy language features such as class annotations. To remove the annotations would require extensive refactoring throughout the library and introduce a lot of boiler plate.

      Lack of support for Groovy class annotations is not explicitly documented (as far as I can see) either in this plugin or in the [workflow-cps-plugin](https://github.com/jenkinsci/workflow-cps-plugin).

      A workaround or solution would be very much appreciated!

          [JENKINS-40564] Groovy class annotations not supported

          Joe Harte created issue -
          Joe Harte made changes -
          Description Original: When attempting to execute a pipeline that loads a library written in Groovy I receive the following exception:
          ```
          Unsupported expression for CPS transformation @ line -1, column -1
          ```
          The Groovy class that is referenced is a simple POGO with the class-level annotation `@EqualsAndHashCode`. Removing the annotation resolves the exception for that class.

          This is a major problem with the plugin and it almost makes it unusable. For any non-trivial library it will most likely make use of Groovy language features such as class annotations. To remove the annotations would require extensive refactoring throughout the library and introduce a lot of boiler plate.

          Lack of support for Groovy class annotations is not explicitly documented (as far as I can see) either in this plugin or in the [workflow-cps-plugin](https://github.com/jenkinsci/workflow-cps-plugin).

          A workaround or solution would be very much appreciated!
          New: When attempting to execute a pipeline that loads a library written in Groovy I receive the following exception:
          {code}
          Unsupported expression for CPS transformation @ line -1, column -1
          {code}
          The Groovy class that is referenced is a simple POGO with the class-level annotation {code} @EqualsAndHashCode {code}. Removing the annotation resolves the exception for that class.

          This is a major problem with the plugin and it almost makes it unusable. For any non-trivial library it will most likely make use of Groovy language features such as class annotations. To remove the annotations would require extensive refactoring throughout the library and introduce a lot of boiler plate.

          Lack of support for Groovy class annotations is not explicitly documented (as far as I can see) either in this plugin or in the [workflow-cps-plugin](https://github.com/jenkinsci/workflow-cps-plugin).

          A workaround or solution would be very much appreciated!
          Andrew Bayer made changes -
          Link New: This issue duplicates JENKINS-45901 [ JENKINS-45901 ]
          Andrew Bayer made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            boon Joe Harte
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: