Jenkins plugin to disable manual build step

Is there a way to enable / disable the build steps of a build job in Jenkins. A method similar to the checkbox for enabling / disabling build steps, so we can temporarily skip some steps that should not be performed. (This is useful for testing the build job)

I would like to know if there is a plugin for this?

+5
source share
2 answers

You can use the conditional build step for this. Configure the build step that you want to switch in the conditional step (single), and set it to run Never. This will skip the build step until you want to enable it again.

If you want this to be a dynamic option, you can enable or disable the build plugin script depending on whether special conditions are met, for example: the parameter has a specific value, the file exists, etc.

+10
source

skip some steps which should not run. Can you make it more understandable?
I used Jenkins to automatically create through work, so I think every work is necessary. If you really want, there is some link that you can see [ How to get Jenkins to skip downstream work if a new assembly is waiting in the pipeline?
Or using another plugin https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin

-1
source

Source: https://habr.com/ru/post/1206536/


All Articles