timegitlabcontinuous-integrationgitlab-cijobs

Gitlab CI Display times in job log


Is there a way to display times in Gitlab CI in the job log?


As shown in the image below, for some commands (I guess automated setup commands) there are times shown on the right.

Screenshot of Gitlab CI Job log

Is there a way to show these times on custom script commands?

I know that I can use e.g. bashs date command. But this does not show the time difference from the initialization time plus does not look that good. Also the time-displays are present already somewhere, so I wonder if they can be used directly.


Solution

  • You can achieve this with Gitlab's custom collapsible sections