Skip to content

Release Environments - CNG images are not built in all pipelines

Context

A step in the release environment pipeline is to build the CNG images - release-environments-build-cng-env .

release-environments-build-cng-env:
  extends: .build-cng-env

If we check the template of the job:

.build-cng-env:
  image: ${GITLAB_DEPENDENCY_PROXY_ADDRESS}ruby:${RUBY_VERSION}-alpine3.20
  stage: prepare
  needs:
    # We need this job because we need its `cached-assets-hash.txt` artifact, so that we can pass the assets image tag to the downstream CNG pipeline.
    - pipeline: $PARENT_PIPELINE_ID
      job: build-assets-image

We see that it needs another from the upstream pipeline - build-assets-image . This job does not always run, depending on the files change (an example). When it happens, the RE pipeline fails.

We need to find a workaround for this problem.

Edited by Dat Tang