2

I have a CI job that ran last week:

CI Job Summary stats

Is there a way to find out exactly when it finished? I am trying to debug a problem that we just noticed, and knowing if the job finished at 9:00am or 9:06am or 6:23pm a week ago would be useful information.

The output from the job does not appear to indicate what time it started or stopped. When I asked Google, I got information about how to run jobs in serial or parallel or create CI jobs, but nothing about getting the time of the job.

For the future, I could put date into script or before_script, but that is not going to help with this job.

This is on a self-hosted gitlab instance. I am not sure of the version or what optional settings have been enabled.

3 Answers 3

1

Uncheck relative time in user preferences:

Click on your profile icon on the top left, then preferences, then scroll down.

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

0

You can get this data only by gitlab api using this request:

curl https://gitlab.example.com/api/v4/projects/<project_id>/jobs/<the_job_id> 

The job id you can get by this thread answer

In the job schema you get: "created_at", "started_at", "finished_at"

Comments

0

If you're using GitLab in the browser you can

  1. Open the job.
  2. Right click to Inspect the page.
  3. Go to Network and then the Fetch/XHR tab.
  4. Reload the page and you'll see a [JOB_ID].json there.

You'll find created_at and more data there!

1 Comment

In Safari, you need to have Show features for web developers enabled under the advanced settings. And the text in the menus is slightly different, because Apple.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.