Jesse Glick
unread,Nov 2, 2017, 11:08:24 AM11/2/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Dev
Let me expand on my answer a little bit. :-)
Describable parameters may only be of very limited types: primitives,
strings, enums, other describables, lists of other describables.
`DescribableModel` goes into details. These are the things that
standard `/lib/form` controls can render (for example in *Pipeline
Syntax*), and that in `workflow-cps` can be bound by `DSL` and
suggested by `Snippetizer`. Thus all `Step` parameters may be of these
types only. Return values are more freeform, but basically you should
only return primitives or structs, no real objects.
Thus the whole concept of your `filter` parameter is impossible. This
is too Groovy-ish anyway. Think about more basic options. Where are
these “issues” coming from? If a bunch of files, then offer an Ant
patternset to consider only some files.
Or simply drop the feature altogether and keep the step nice and dumb.
If people with exotic needs have to preprocess their input a bit using
some Ruby script to control what gets published on Jenkins, so be it.
They do not need your help.
Anyway `WarningsPublisher` is already a `SimpleBuildStep`; is there
something else to do? Looks like you are missing a few `@Symbol`s, but
other than that?