Skip to content

Backend: No possibility to fail the job in after_script

after_script ignores errors

There should be a possibility to fail the after_script if it fails.

Steps to reproduce

Example Project

build:
  script:
    - exit 0
  after_script:
    - exit 1

Screenshot_2023-05-25_at_15.49.30

What is the current behavior?

build passes

What is the expected behavior?

build should fail

Edited by Furkan Ayhan