From 96e6bed785911d317fa206578b08eba1baa06ad3 Mon Sep 17 00:00:00 2001 From: Arseney300 Date: Fri, 20 Feb 2026 23:01:21 +0700 Subject: Add pipeline durability fix and stuck build cleanup script Mount jenkins/init.groovy.d/ into the container to auto-clean corrupted flow executions on startup (JENKINS-50407). Document both the prevention (Performance-optimized durability setting) and recovery (groovy cleanup script) in the setup guide. Co-Authored-By: Claude Opus 4.6 --- CLAUDE.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CLAUDE.md') diff --git a/CLAUDE.md b/CLAUDE.md index 27e3799..cb9cbbc 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -58,6 +58,8 @@ Bastion is a self-hosted server system on Debian that runs multiple services in - Accessible at `https://jenkins.swave.lol` and `https://swave.lol/jenkins` - Ports: 8080 (web UI), 50000 (agent communication) - Volume: `/var/jenkins_home` +- Pipeline durability: set to "Performance-optimized" to prevent flow execution corruption +- Startup script: `jenkins/init.groovy.d/clear-stuck-builds.groovy` auto-cleans stuck builds on restart ### Nginx (reverse proxy) - Dir: `nginx/` @@ -89,6 +91,7 @@ Each stack has its own Docker network. Nginx joins all of them to reverse proxy: - `doc/Jenkinsfile.kernel-example` — example kernel build pipeline using kernel-builder image - `doc/jenkins-cpp-build.md` — guide for building C++ apps in Jenkins with Docker agent - `jenkins/kernel-builder/Dockerfile` — custom Docker image for building the Linux kernel +- `jenkins/init.groovy.d/clear-stuck-builds.groovy` — startup script to clean stuck pipeline executions - `ghost/.env.example` — template for Ghost env vars - `.gitignore` — excludes `.env` files (secrets) -- cgit v1.2.3