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

前端 未结 2 1192
孤独总比滥情好
孤独总比滥情好 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:03

    It is posssible but it is a bit messy and can not be done with ui only.

    Create the the conditional build step in the build block and save the konfiguration. Edit the xml file and move the whole conditional build step it to the post build block. Reload the jenkins configuration and it works like intended.

    0 讨论(0)
  • 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.
    0 讨论(0)
提交回复
热议问题