hmmm ... as i've understood from the posted refactoring guide on Jenkins.io, it's better to separate it - especially when you have a builder and recorder in one plugin and you'd like to make it a one step in pipeline. I've also looked at HtmlPublisher that separated too.
In what cases it's advised to separate? and not share code? i.e. create diffrent module to support pipeline that launches modules of freestyle job..? On Tuesday, August 30, 2016 at 11:26:38 AM UTC+3, Jesse Glick wrote: > > Not clear why you are writing a `Step` at all. From a quick glance, you > could just implement `SimpleBuildStep` on an existing `Builder` or > `Publisher` and share more code with freestyle. Assuming there is a > `@Symbol`, the result will look just like a true `Step`. > > A `@Symbol` should start with a lowercase letter. > > Use `@DataBoundSetter` for optional parameters. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/2aafb933-4843-4092-83b1-0f5a079719ac%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
