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.
source share