Allow to inject steps using an annotation

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

XMLWordPrintable

      It would be great to have the option to inject steps in the shared library using an annotation.

      That way, we can do this

      class Utilities implements Serializable { 
      
        @PipeLineSteps 
        def steps
      
        def mvn(args) { 
          steps.sh "${steps.tool 'Maven'}/bin/mvn -o ${args}" 
        } 
      }
      

      instead of having to inject directly "this" to the constructor.

            Assignee:
            Unassigned
            Reporter:
            Darío Villadiego
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: