Best way of triggering a job when a specific job fails

Hello, what’s the best way of doing this currently? on_failure will always trigger no matter which job failed, and what I want is that once a specific job fails, trigger another job. after_script does not work because it has a limit of 5 minutes. Basically if the job does not find a file, it will call another job that will create it.

1 Like