1

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.

Volo
  • 28,673
  • 12
  • 97
  • 125
Jirong Hu
  • 2,315
  • 8
  • 40
  • 63
  • 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 Answers1

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).

enter image description here

Volo
  • 28,673
  • 12
  • 97
  • 125