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

Allow common groovy annotation in Pipeline Shared Library Classes

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. 

       

       

            Unassigned Unassigned
            pmr Philipp Moeller
            Votes:
            15 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated: