Skip to content

Check for dependency job stage index before comparison

What does this MR do?

This bug fixes #59366 (closed) - that referencing an not-yet-defined build stage in a dependent job throws an error when trying to compare the indexes of the stages to ensure that the dependent job is executed before the one defining the dependency. If the stage isn't found at all, it hasn't been previously defined and we should report the helpful error.

The configuration in question in #59366 (closed) is not valid and this change will not make it valid, but will allow us to report a meaningful error message about the configuration instead of breaking and returning a generic 500 response.

Does this MR meet the acceptance criteria?

Conformity

Performance and testing

Edited by drew stachon

Merge request reports