On Thu, Sep 14, 2017 at 11:51 AM, 'Alexandra Goultiaeva' via Jenkins
Developers <[email protected]> wrote:
> It has an option ("on failed build") which makes sense for Post-Build, but
> not for Build Step. I wanted to make that option hidden for the Build Step
> version but not for the Post Build.

Make the common parts into a `Describable` with a `config.jelly`.
Include those into the `Builder` and the `Publisher` as a field bound
to `f:property`. Then the `Publisher`’s `config.jelly` would simply
have another entry with an `f:checkbox`.

(Or, again IMO, do not clutter the plugin with options like this. A
`Publisher` designed for freestyle projects should just not run when a
build is unstable—good enough. Declarative Pipeline users, when
consuming a `Builder & SimpleBuildStep`, have straightforward detailed
control over such behaviors using `when` blocks.)

-- 
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/CANfRfr0XqhTJZD5hGB7kE8yb8%2B_fGpiDN3PbAa8VkYFBeJKkSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to