简体   繁体   中英

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.

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

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM