- Groovy 81.7%
- Dockerfile 18.3%
regubot, mcMMO and winget join UBI in its magic-comment dictionary, the title and two names move into backticks, and the tables, whose cells end without a full stop, are exempt from PUNCTUATION_PARAGRAPH_END. ltex-cli-plus 19.0.0 stalls on the result, as in LTeX+ LS's issue 99. lsp-cli-plus with regulad's pull requests 68, 70, 71 and 72, the 3.1.0-pr68.pr70.pr71.pr72 snapshot, checks it in 11 seconds with no findings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mv4cZ3LFVAJ9aG5SntwnAr |
||
|---|---|---|
| .github | ||
| images/podman-python | ||
| jobs | ||
| pipelines | ||
| .sops.yaml | ||
| AGENTS.md | ||
| Jenkinsfile | ||
| LICENSE.md | ||
| README.md | ||
| winget.sops.yaml | ||
jobs
The jobs of Jenkins at https://ci.regulad.xyz/, other than the regulad
organization folder, which builds each of regulad's repositories that has a
Jenkinsfile. This repository's own Jenkinsfile is the seed that applies the
rest, so that folder builds it, as regulad/jobs.
Layout
| Path | What it holds |
|---|---|
jobs/<folder>.groovy |
Job DSL defining a folder and its jobs. Job DSL makes a Groovy class of each script, so a character a class name can't hold, such as -, is written _: mcMMO-Dev's jobs are in jobs/mcMMO_Dev.groovy |
pipelines/<folder>/<job>/Jenkinsfile |
Each pipeline job's pipeline, which the job reads from main at every run |
Jenkinsfile |
The seed, which applies jobs/ in main's build, regulad/jobs/main |
images/<label>/Dockerfile |
The image of Jenkins's agents with that label, which .github/workflows/<label>.yml publishes as ghcr.io/regulad/jobs/<label>, tagged with the commit, whenever main changes the directory |
.github/dependabot.yml |
Weekly updates of each image's base and of the workflows' actions |
.sops.yaml |
Encrypts files named *.sops.<json|yaml|yml|env> with SOPS, to Parker's age key and to this repository's, which Jenkins holds as jobs-sops-age-key |
winget.sops.yaml |
ssh_signing_key, the private half of jenkins-winget, one of regubot's SSH signing keys |
.github/settings.yml |
This repository's name, description and topics, which the Settings app applies |
| Job | What it does |
|---|---|
ltex-plus/lsp-cli-plus |
Builds lsp-cli-plus with regulad's pull requests that it hasn't merged yet, from a combo branch of regulad's fork whenever the branch moves, and deploys the build to Nexus's maven-snapshots as a snapshot of org.bsplines:lspcli; its Jenkinsfile says how it is versioned |
ltex-plus/ltex-ls-plus |
The same for LTeX+ LS, from regulad's fork, as org.bsplines:ltexls-plus, with its Windows archives too |
mcMMO-Dev/mcMMO |
Builds mcMMO from the head of its master branch whenever it moves, keeping each build's mcMMO.jar as its artifact |
vadimgrn/usbip-win2 |
Submits usbip-win2's latest release to winget as vadimgrn.usbip-win2, with Komac, as regubot, regulad's machine account |
z4yx/pam_rssh |
Uploads pam_rssh's releases to Nexus's pam-rssh-* repositories at https://repo.regulad.xyz/; its README says how to install from them |
How a change reaches Jenkins
At each push, GitHub tells Jenkins through its App's webhook, and the regulad
organization folder builds the pushed branch or pull request of regulad/jobs.
On main, the seed runs Job DSL over jobs/**/*.groovy at the pushed commit,
creating and updating what they define and deleting the items they no longer
define; Jenkins reports the result on the commit. Other branches and pull
requests apply nothing.
A pipeline's change needs no seeding: its job reads its Jenkinsfile from main
at each run. The seed can also be built by hand, as regulad/jobs/main.
Jenkins itself is regulad/homelab's, under
Configuration as Code
(ansible-generated/files/jenkins.regulad.internal/etc/jenkins/casc.d/):
- Script approval: Job DSL runs without it, as only regulad writes here.
- Credentials: every credential these jobs name is in Jenkins's own store,
from SOPS, and so every job's. The folders this repository defines hold none,
since each seed run writes them anew. A job names its credentials by ID; a new
one starts in homelab, before the job that names it is added here. Among them:
regulad-jenkins, a credential of Jenkins's GitHub App. Bound as a username and password, it gives the App's ID and a fresh installation token, which lasts at most an hour. It readsregulad/jobsalone, which is enough to read GitHub's public data at an installation's rate limit. A job that needs more asks for it in homelab; a permission the App itself lacks is first granted to the App on GitHub. Inside thereguladorganization folder, that folder's own, broaderregulad-jenkinstakes its place.winget-token, regubot's token for its fork ofmicrosoft/winget-pkgs.jobs-sops-age-key, the age key that opens this repository's SOPS files.svc-patched-ci, the Nexus user that deploys builds of other projects with regulad's pull requests tomaven-snapshots, the one repository it can write to.
- Agents: the
podmanlabel starts a container for each build, under rootless Podman beside the controller, fromjenkins/inbound-agent, which hascurl,git, coreutils and a JDK 21, but neitherjqnor Python. Thepodman-pythonlabel starts one the same way from this repository'simages/podman-python, built on that image's Red Hat UBI 9 variant, which has Python 3.9 aspython3, and adds it aspythontoo, withbinutilsforjlink'sobjcopy. It has no OpenSSH client. At most two agents run at once, across both labels. - Maven: the
maventool, a pinned Maven release, which Jenkins installs on the agent of each build that names it (tools { maven 'maven' }).
Writing a pipeline
Pipelines from this repository run in Jenkins's Groovy sandbox, without script approvals:
- Parse JSON with
groovy.json.JsonSlurperinside a@NonCPSmethod that returns plain lists, maps and strings, since its own maps can't outlive a step.JsonSlurperClassicisn't allowed. - Keep secrets out of Groovy strings: pass values to
shthroughwithEnv, and write its script in single quotes, so thatwithCredentialsvalues reach the shell as environment variables.