Skip to content

Add display_name keyword for custom display name on GitLab UI

What does this MR do and why?

Add display_name on Job CI keyword for custom display job name on GitLab UI.

Connected to #27621 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After URL
Screenshot 2567-08-25 at 15.27.33.png Screenshot 2567-08-25 at 14.31.43.png http://gdk.test:3000/flightjs/Flight/-/commit/COMMIT_SHA
Screenshot 2567-08-25 at 15.28.02.png Screenshot 2567-08-25 at 14.32.04.png http://gdk.test:3000/flightjs/Flight/-/pipelines/PIPELINE_ID/failures
Screenshot 2567-08-25 at 15.28.22.png Screenshot 2567-08-25 at 14.32.40.png http://gdk.test:3000/flightjs/Flight/-/pipelines/PIPELINE_ID/builds
Screenshot 2567-08-25 at 15.28.43.png Screenshot 2567-08-25 at 14.28.58.png http://gdk.test:3000/flightjs/Flight/-/pipelines/PIPELINE_ID
Screenshot 2567-08-25 at 15.29.26.png Screenshot 2567-08-25 at 14.33.01.png http://gdk.test:3000/flightjs/Flight/-/jobs/JOB_ID
Screenshot 2567-08-25 at 15.29.44.png Screenshot 2567-08-25 at 14.33.16.png http://gdk.test:3000/flightjs/Flight/-/commit/COMMIT_SHA/pipelines

How to set up and validate locally

  1. Add display_name under job section in .gitlab-ci.yml
stages:
  - build
  - test

build-job:
  display_name: 'DISPLAY_NAME_1'
  stage: build
  script:
    - echo "Compiling the code..."
    - echo "Compile complete."
  manual_confirmation: "TEST abc"

unit-test-job:
  stage: test 
  display_name: 'DISPLAY_NAME_2'
  script:
    - echo "Running unit tests... This will take about 60 seconds."
    - sleep 60
    - echo "Code coverage is 90%"
  1. Display name should show instead of job name.
Edited by Phawin Khongkhasawan

Merge request reports

Loading