Skip to content

Custom job names in pipeline

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem to solve

Improve pipeline readability for humans

Further details

Consider wanting to have consistent name output in a pipeline:

stages:
  - lint
  - build

node.js:
  # job here

node.js:
  # job here

This will fail: I'm essentially attempting to lint and build a node.js project but would today be required to add a prefix/suffix to jobs just to have it parse correctly.

Proposal

I'd like to improve the pipeline ui by adding a custom attribute to a job called "name". This would allow the customization of the name in a pipeline which currently is somewhat parsed from the job definition in .gitlab-ci.yml (by somewhat I mean that the parsing does things like capitalize, remove hyphens etc).

What does success look like, and how can we measure that?

stages:
  - lint
  - build

node-lint:
  name: Node.js
  # job here

node-build:
  name: Node.js
  # job here

Links / references

Tangential issue: https://gitlab.com/gitlab-org/gitlab-ce/issues/25610

Edited by 🤖 GitLab Bot 🤖