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.
Asked
Active
Viewed 1,224 times
1
-
This can be achieved using the approach described here:http://stackoverflow.com/questions/26614985/conditional-post-build-step-in-jenkins-ideally-without-plugins/26634091#comment59740648_26634091 – Jirong Hu Mar 17 '16 at 19:03
1 Answers
1
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).

Volo
- 28,673
- 12
- 97
- 125