Unable to find image codequality:11-4-stable - Release candidate

Summary

Unable to find image 'registry.gitlab.com/gitlab-org/security-products/codequality:11-4-stable' locally
docker: Error response from daemon: manifest for registry.gitlab.com/gitlab-org/security-products/codequality:11-4-stable not found.
See 'docker run --help'.
ERROR: Job failed: exit code 125

Apparently this error started after an auto update to a candidate version that has been released. When changed manually to the stable version, everything works ok again!

Just to make it clear, I did not update the image myself. I'm using the same configuration described here: https://docs.gitlab.com/ee/ci/examples/code_quality.html

After debugging it, I realised it was related to:: - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')

Steps to reproduce

...
code_quality:
  tags:
    - docker
  stage: quality_check
  image: docker:stable
  services:
    - docker:stable-dind
  script:
    - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
    - docker run
        --env CODECLIMATE_VERSION=0.78.1
        --env SOURCE_CODE="$PWD"
        --volume "$PWD":/code
        --volume /var/run/docker.sock:/var/run/docker.sock
        "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
  artifacts:
    paths: [gl-code-quality-report.json]
...

What is the current bug behavior?

Gitlab Pipeline cannot run because it does not find an image that matches $SP_VERSION

What is the expected correct behavior?

Unable to find image 'registry.gitlab.com/gitlab-org/security-products/codequality:11-3-stable' locally
11-3-stable: Pulling from gitlab-org/security-products/codequality
911c6d0c7995: Pulling fs layer
aff9b9c51076: Pulling fs layer
...
Status: Downloaded newer image for registry.gitlab.com/gitlab-org/security-products/codequality:11-3-stable

Relevant logs and/or screenshots

...
code_quality:
  tags:
    - docker
  stage: quality_check
  image: docker:stable
  services:
    - docker:stable-dind
  script:
    - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
    - echo $CI_SERVER_VERSION
    - docker run
        --env CODECLIMATE_VERSION=0.78.1
        --env SOURCE_CODE="$PWD"
        --volume "$PWD":/code
        --volume /var/run/docker.sock:/var/run/docker.sock
        "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
  artifacts:
    paths: [gl-code-quality-report.json]
...

The echo result: 11.4.0-rc1-ee

Output of checks

This bug happens on GitLab.com

Possible fixes

As a workaround I manually changed the $SP_VERSION from 11.4.0-rc1-ee to 11-3-stable that was working properly before this auto-update to a release candidate.

Assignee Loading
Time tracking Loading