FAQ | This is a LIVE service | Changelog

Skip to content

Multi target docker images never triggered when template included

👓 What did you see?

When including the multi-target-docker-images.gitlab-ci.yml template, the job to create child pipelines is never run.

What did you expect to see?

multiple-docker-images job to exist and child pipelines to be created.

💻 Where does this happen?

GitLab CI pipelines

🔬 How do I recreate this?

  1. Follow instructions in multi-target-docker-images.gitlab-ci.yml to add the template to the pipeline
  2. Run the pipeline

📚 Any additional information?

This looked to be working before. The problematic part looks to be:

multiple-docker-images:
  rules:
    - if: $MULTI_DOCKER_IMAGE_BUILD_ENABLED
      when: never

As removing this specific rule or removing the MULTI_DOCKER_IMAGE_BUILD_ENABLED: "1" from variables will make the job and creation of child pipelines work. Note that moving MULTI_DOCKER_IMAGE_BUILD_ENABLED: "1" to parallel:matrix also doesn't work.

Pipeline that did work:

Pipeline that doesn't work:

Looking at the above, it looks like we never actually ran the pipeline with the latest revision of the code before merging. I think, reverting to multiple files, might be the way forward. Discussion about this:

!92 (comment 703780)