https://github.com/codelenny/gitlab-recent-job-time
Queries GitLab to determine how long a CI job took the last time it was run.
https://github.com/codelenny/gitlab-recent-job-time
Last synced: 15 days ago
JSON representation
Queries GitLab to determine how long a CI job took the last time it was run.
- Host: GitHub
- URL: https://github.com/codelenny/gitlab-recent-job-time
- Owner: CodeLenny
- Created: 2017-05-18T15:34:02.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-18T16:00:26.000Z (about 9 years ago)
- Last Synced: 2025-02-28T22:28:19.348Z (over 1 year ago)
- Language: JavaScript
- Size: 71.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitLab Recent Job Time
Queries GitLab to determine how long a CI job took the last time it was run.
To ensure that the script doesn't create unneeded load on the GitLab API, the last build time will only be loaded when
you click on "Load Last Build Time".

## Current Status
The job checker should work in many scenarios, but it can be a little naive.
Known limitations:
- Fetching jobs is slow. Requests should be cached, and possibly bundled if that would improve performance.
- When presented with multiple "parent commits", only the first one is evaluated.
- Only the most recent parent commit is queried for job status. If builds weren't run on the most recent commit, no
results will be found.
## Installation
1. Install [TamperMonkey][]
2. Visit [gitlab-recent-job-time.user.js][]
TamperMonkey should prompt you to install the script.
The first time you load a build time, you will be prompted for an [API Token][].
The script will automatically update itself when new versions are released. You may want to configure TamperMonkey's
update checking duration, as it may default to only check for updates once a week.
[TamperMonkey]: https://tampermonkey.net/
[gitlab-recent-job-time.user.js]: https://raw.githubusercontent.com/CodeLenny/gitlab-recent-job-time/master/gitlab-recent-job-time.user.js
[API Token]: https://gitlab.com/profile/personal_access_tokens