Jump to content

Tool:Jenkins-build-stats

From Wikitech
Toolforge tools
jenkins-build-stats
Website https://jenkins-build-stats.toolforge.org/
Description Collect and report on jobs run in the Wikimedia Jenkins server.
Keywords jenkins, ci, ruby
Author(s) Dduvall
Maintainer(s) BryanDavis, Dduvall, Thcipriani (View all)
Source code gitlab:toolforge-repos/jenkins-build-stats
License GNU General Public License 3.0 or later
Admin log Tools.jenkins-build-stats/SAL

Jenkins build stats collects and reports on job runs in the Wikimedia Jenkins server.

Usage

The report generator runs from Toolforge under the "jenkins-build-stats" account as a scheduled job.

$ ssh login.toolforge.org
$ become jenkins-build-stats
$ toolforge jobs run daily-stats-manual \
  --command "cd jenkins-build-stats && bundle exec bin/cron" \
  --image ruby3.1

Typically the bin/cron script is run nightly by a CronJob in the Toolforge Kubernetes cluster.