Jirong Hu
Jirong Hu

Reputation: 2375

How to use post-build actions as build steps in Jenkins job?

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

Answers (1)

Volo
Volo

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

enter image description here

Upvotes: 1

Related Questions