1
0
Fork 0
mirror of synced 2026-12-06 17:02:25 +00:00
No description
  • Groovy 81.7%
  • Dockerfile 18.3%
Find a file
Parker Wahle 4c7f9fad51
docs: README.md passes LTeX+'s checks
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
2026-12-03 10:05:10 -05:00
.github feat: images/podman-python, the podman-python agents' image, with python as well as python3 2026-12-02 23:24:32 -05:00
images/podman-python fix: images/podman-python has binutils, whose objcopy jlink runs 2026-12-03 09:51:21 -05:00
jobs feat: ltex-plus/lsp-cli-plus and ltex-plus/ltex-ls-plus, which deploy builds of regulad's combo branches to Nexus 2026-12-02 22:10:16 -05:00
pipelines fix: images/podman-python has binutils, whose objcopy jlink runs 2026-12-03 09:51:21 -05:00
.sops.yaml chore: SOPS files are encrypted to post-quantum keys 2026-12-02 14:33:09 -05:00
AGENTS.md feat: images/podman-python, the podman-python agents' image, with python as well as python3 2026-12-02 23:24:32 -05:00
Jenkinsfile feat: the seed is this repository's own Jenkinsfile 2026-11-21 03:31:49 -05:00
LICENSE.md feat: the seed workflow, and z4yx/pam_rssh, which uploads pam_rssh's releases to Nexus 2026-11-19 19:30:27 -05:00
README.md docs: README.md passes LTeX+'s checks 2026-12-03 10:05:10 -05:00
winget.sops.yaml chore: SOPS files are encrypted to post-quantum keys 2026-12-02 14:33:09 -05:00

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 reads regulad/jobs alone, 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 the regulad organization folder, that folder's own, broader regulad-jenkins takes its place.
    • winget-token, regubot's token for its fork of microsoft/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 to maven-snapshots, the one repository it can write to.
  • Agents: the podman label starts a container for each build, under rootless Podman beside the controller, from jenkins/inbound-agent, which has curl, git, coreutils and a JDK 21, but neither jq nor Python. The podman-python label starts one the same way from this repository's images/podman-python, built on that image's Red Hat UBI 9 variant, which has Python 3.9 as python3, and adds it as python too, with binutils for jlink's objcopy. It has no OpenSSH client. At most two agents run at once, across both labels.
  • Maven: the maven tool, 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.JsonSlurper inside a @NonCPS method that returns plain lists, maps and strings, since its own maps can't outlive a step. JsonSlurperClassic isn't allowed.
  • Keep secrets out of Groovy strings: pass values to sh through withEnv, and write its script in single quotes, so that withCredentials values reach the shell as environment variables.