Add retry option for the trigger jobs

Steps to reproduce

I have a parent repo with multiple child repos that are mirrored by the parent. I'd like to run the trigger job when the child repo is synced by the parent.

Assume the project path of the parent is group/parent also I set a variable just for the parent repo that I called DOCKERFILE because I don't like to see trigger jobs ( also build stages) in the pipeline of child repos.

my gitlab-ci.yaml is something like this.

variables:
  SYNC: $CI_COMMIT_SHORT_SHA
workflow:
  rules:
    - if: ($CI_PROJECT_PATH == "group/parent" && $CI_COMMIT_BRANCH == "master") || ($CI_COMMIT_BRANCH == "master" && $CI_COMMIT_SHORT_SHA == $SYNC)
stages:
  - build
  - trigger
build:
    stage: build
  script:
    - docker build -t project:latest . 



trigger-fedshi:
    stage: trigger
    rules:
      - if: $DOCKERFILE !=null
        when: on_success
      - when: never
    variables:
      SYNC: $CI_COMMIT_SHORT_SHA
      AUTO_DEPLOY_DEV: enabled
    trigger: group/child1

What is the current bug behavior?

sometimes trigger jobs are failed since the child project hasn't been still synced by the parent so the child repo hasn't any pipeline and trigger jobs get failed!

My issue is that I don't have any retry option to retry jobs of triggers like other jobs so I have to re-run the whole pipeline!

Screen_Shot_2021-11-28_at_18.43.13