Reputation: 2375
Why the post-build actions are not included in conditional build steps? I want to use Email notification
for a debug build but Editable Email Notification
for a release build, things like that.
Upvotes: 1
Views: 1330
Reputation: 29438
You can do it with Any Build Step Plugin, which allows to use publishers as builders and builders as publishers.
Once installed the plugin needs to be enabled on the Manage Jenkins → Configure System
page. Find the "Conditional buildstep" section there and select Any build step
from a drop-down (if you want to use builders as publishers then select "Any build step" for Flexible publish section as well).
Upvotes: 1