Allow common groovy annotation in Pipeline Shared Library Classes

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

XMLWordPrintable

      Currently the following code fails with a cryptic error message:

       

      package org.test.;
      import groovy.transform.ToString
      @ToString(includeNames=true)
      class X implements Serializable {
       def script
       def A, B
      Promotemodul(script, m) {
       this.script = script
       this.A = m.A
       this.B = m.B
       }
      }
      

      It would be great if some common annotations (ToString, EqualsAndHashCode...) would be supported in Pipeline Shared Libraries. 

       

       

            Assignee:
            Unassigned
            Reporter:
            Philipp Moeller
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: