On Wed, Aug 26, 2020 at 1:51 PM Michael Carter <mikeycarter1...@gmail.com> wrote: > Really don't want to repeat code between pipeline/freestyle as my commands > need both.
Well, you cannot return values from `SimpleBuildStep` as that would not work in freestyle, or for that matter in Declarative Pipeline. You _can_ return values from an explicit `Step`, for use in Scripted Pipeline, though you may want to consider alternate designs that do not force scripting on the user. With no context it is impossible to offer suggestions. -- 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 jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1mGLmV7CFVVme4gq%3D82H4oUPK9HXGMjCiR3UBgMKoPfg%40mail.gmail.com.