Fail pipeline on failed codebase task
pending feedback
Y
Yarrow Crane
We'd like the ability to fail the pipeline if it is unable to fetch the codebase expressions. We are using <+codebase.commitSha> and if this is empty or null, it causes issues with our entire pipeline. We've noticed that our pipeline doesn't fail until it gets to the Deploy stages which makes it hard for us to understand why this has failed and cleaning up the Build stages from the null expressions is also difficult.
Log In
Y
Yarrow Crane
while that is a technically feasible solution, it would lead to more complex pipelines that would be to have knowledge about internal aspects of the Harness engine. I would like to suggest having some feature flag and if enabled, just cause pipeline executions to fail if the codebase task failed, otherwise continue running, as in current state.
N
Nofar Bluestein
pending feedback
N
Nofar Bluestein
Hey,
One way to approach it is to have an additional run step, and check for the value of <+codebase.commitSha> . in case this is empty, you can fail the run step.
This way the stage will fail early and not reach to the CD stage.
Does that make sense?
Regards,
Nofar Bluestein
CI product team