GitLab exit codes

Hello =D

I would like to ask a question considering exit codes/allow failure.

According to the documentation:

I should be able to set exit codes. However, the job fails.

Here is an example of my basic job:
This job fails even though it should not since I have defined an exit code:

If I replace the exit code with 1:

the job behaves as expected and allows failing:

Am I doing something wrong here? Is there a new way of letting jobs exit with a specific exit code?

Here is an example from the documentation as a reference:

Thank you very much in advance! :slight_smile: