Sign in or sign up before continuing. Don't have an account yet? Register now to get started.
Register now

Triggers are not executed on retry if pipeline fails on first run

Summary

If a pipeline fails in the first attempt, but is successful in a new attempt (after retrying the failed jog), trigger jobs are not executed.

Steps to reproduce

.gitlab_ci.yml:

stages:
- build
- trigger

build:
  stage: build
  script:
    - echo -e "hello, this is job ${CI_JOB_ID}"
    - exit $((CI_JOB_ID%2))

trigger:
  stage: trigger
  trigger: <a-triggered-project>

In this example, if JOB_ID is even, the build job succeeds and the job trigger is executed. If JOB_ID is odd, the build job fails and the job trigger is not executed. That's ok. But if the failed build job is re-executed and succeeds, the trigger is still not executed.

What is the current bug behavior?

Trigger job is not executed.

What is the expected correct behavior?

Trigger job is executed.

Relevant logs and/or screenshots

Used version: GitLab Enterprise Edition 12.0.3-ee

Pipeline when first attempt of job build fails:

image

Pipeline when first attempt of job build succeeds:

image

Assignee Loading
Time tracking Loading