I did consider that, but I'm currently using SimpleBuildStep to provide the steps to both freestyle and pipeline contexts. If I make that one step, that would make the experience in pipelines rather messy, with lots of properties that would only apply for a specific combination of other properties. (And it would also make the jelly quite complicated in order to hide/show various bits depending on other bits.)
Unless there's a relatively simple way to have a build step for freestyle that would essentially then have a dropdown for the 11 "real" steps which then shows their configuration when selected. Then the top-level "add build task" list stays clean, with minimal extra effort for the user (an extra dropdown to select from), and keeping the code clean as well (just a simple class to do the forwarding). On Mon, 11 Apr 2022 at 23:58, 'Daniel Beck' via Jenkins Developers < [email protected]> wrote: > On Mon, Apr 11, 2022 at 11:53 PM Tim Van Holder <[email protected]> > wrote: > >> I maintain a plugin (dotnet-sdk) that mostly provides a global tool and >> associated wrapper. >> But it also has a bunch (currently 11) convenience steps that can be used >> (instead of the wrapper plus bat/pwsh/...). >> I got a ticket saying that this caused a bit of a clutter for freestyle >> jobs, because the list popped up by "Add build step" gets pretty long, >> which was fair enough. It turned out to be very easy (using isApplicable()) >> to have each of the steps optionally "hide" itself based on a flag in a >> GlobalConfiguration. >> > > Not what you're asking for, but have you considered migrating to a single > ".NET" build step that offers 11 modes? That would cut down on top-level > options offered by default and make the list friendlier for people who need > this variety. > > -- > 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/CAMo7PtJ0J%2BQmYPrZV_j2tLJ4te4w0T%3D-ipB8LWAxiFLxsM-Kiw%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-dev/CAMo7PtJ0J%2BQmYPrZV_j2tLJ4te4w0T%3D-ipB8LWAxiFLxsM-Kiw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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/CAKMi--DiCA4JxUh2tzzuKXa8aw3Q3uOk5qX%2BrwZPiV%2BrNV46bw%40mail.gmail.com.
