Conditional Post-Build step in Jenkins (Ideally without plugins)

前端 未结 2 1193
孤独总比滥情好
孤独总比滥情好 2021-02-04 03:34

If I understand correctly I can make a build step conditional using this plugin: https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin

First does thi

2条回答
  •  深忆病人
    2021-02-04 04:28

    You can make any Build step execute as Post-build step.

    • Install Flexible Publish plugin
    • Install Any Build Step plugin
    • Under Configure System, look for "Flexible publish", and choose Any build step from drop-down.

    The configure Job.

    • In your Job configuration, add Post-build action called "Flexible Publish".
    • Select condition.
    • Select action.

提交回复
热议问题