Normally a pipeline breaks down into stages such that each stage has one or more jobs. In order to stop the pipeline from running conditionally, you simply fail that stage of the pipeline.
For example let's assume I have a pipeline with four stages,
[Build] -> [Test] -> [Version Bump] -> [Publish]
Now, let's assume the Version Bump
may or may not bump the version number which means the Publish
stage may or may not run. In order to model this in GitLab we would normally fail the Version Bump
stage at the point that we know the Publish
should not run. But one of my co-workers does not like the term "fail" here.
Given the above circumstance, is it a normal flow to have a stage pass unconditionally, and to have a subsequent stage conditionally execute?
Or, is the pipeline failing just the way in which a pipeline should conditionally terminate?