One can add conditionals to a command step to skip it under certain circumstances. However, this exposes these circumstances in the pipeline YAML.
For a plugin, I would like to “bake in” these conditions to one of the hooks (pre-command
I guess) in such a way that the step is marked as skipped. Is that possible?
I could just exit when the conditions are met, but then the step will be considered successful, rather than skipped. Maybe it’s possible with buildkite-agent step update
, but the documentation’s not clear on this…