Show all Deployments in Merge Request Widget

Problem to solve

In the Docs it says, you can see the Deployments in the Merge Request as in this example:
image

However, this seems to be a screenshot from an old GitLab version. In my version, I can only see the deployments that run it the latest pipeline, as seen in this screenshot:

The problem is, when you make a change that doesn’t trigger a deployment (e.g. a doc change), you don’t see the deployments in the Merge Request view, as the latest pipeline didn’t trigger any deployments.

Is this something you can configure somewhere or did it change in the UI? I would really appreciate to see all Deployments in the MR.

Steps to reproduce

  1. create a Branch
  2. make some changes that trigger a deployment
  3. create a MR
  4. make changes that don’t trigger a deployment (or if you use my gitlab-ci example, run manual pipeline with “none”

Configuration

You can use this .gitlab-ci.yml example for reproduction:

stages:
  - deploy

workflow:
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
      when: never
    - when: always

variables:
  DEPLOY:
    description: "Which Environment(s) to deploy?"
    options:
      - "both"
      - "a"
      - "b"
      - "none"
    value: "both"

deploy:a:
  stage: deploy
  environment:
    name: a
    url: https://www.my-url.com
    on_stop: stop:a
  script:
    - echo "Deploy a"
  rules:
    - if: $DEPLOY == "a"
    - if: $DEPLOY == "both"

stop:a:
  stage: deploy
  environment:
    name: a
    action: stop
  script:
    - echo "Stop Deployment a"
  when: manual
  rules:
    - !reference [deploy:a, rules]

deploy:b:
  stage: deploy
  environment:
    name: b
    url: https://www.my-url.com
    on_stop: stop:b
  script:
    - echo "Deploy b"
  rules:
    - if: $DEPLOY == "b"
    - if: $DEPLOY == "both"

stop:b:
  stage: deploy
  environment:
    name: b
    action: stop
  script:
    - echo "Stop Deployment b"
  when: manual
  rules:
    - !reference [deploy:b, rules]

Versions

Please select whether options apply, and add the version information.

  • Self-managed
  • GitLab.com SaaS
  • Self-hosted Runners

Versions

  • GitLab 17.3.0-pre