It would be useful if it could produce multi-line. All of the developers I see use it always take the single line, of the more complex plugins, then break it into a multi-line for easy reading.
reportIssues of the Next Generation Warning is a good example. Only one report tool it's small but after you start adding 10 or more tools with all the config it gets confusing and hard to read. On Thursday, August 6, 2020 at 1:05:52 PM UTC-4, Jesse Glick wrote: > > On Thu, Aug 6, 2020 at 8:54 AM Michael Carter <[email protected] > <javascript:>> wrote: > > how I can hook a formatter into it? Is there custom hooks anywhere into > the "Generate" button? > > No, `workflow-cps` currently produces a single line only. I suppose it > could be made to generate indented multiline content if you checked a > box requesting that. What you _can_ do is ensure that default values > are omitted, so the size of the command is proportional to what the > user actually customized: > > > https://www.jenkins.io/doc/developer/plugin-development/pipeline-integration/#handling-default-values > > -- 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/2490dd52-e425-43bc-991a-0e9c413c71d6o%40googlegroups.com.
