Shipped a one-click Jenkins deploy template — the persistent volume path was the whole game

2026-11-29来源 dev.toEnglish

I kept spinning up Jenkins from scratch for every side project, then losing all the pipeline config the moment the container restarted. So I packaged a one-click deploy template that bakes in the detail that actually matters: mounting /var/jenkins_home to a persistent volume so jobs, credentials, and plugins survive redeploys.

The concrete piece that took the longest to get right was the volume claim — without it, every deploy wiped the workspace and I'd be re-entering secrets. With it, a fresh clone plus one click gives a working Jenkins with the core plugins pre-installed.

The honest cost to the operator: Jenkins is not lightweight. Even idle, it wants a decent chunk of RAM, so on a small host you'll feel it. I sized the template's defaults accordingly and noted the minimum in the README rather than pretending it runs on a free tier.

Repo went up here: https://github.com/INAPP-Mobile/jenkins

原文:https://www.a8q9.cn/en/article/shipped-a-one-click-jenkins-deploy-template-the-persistent-volume-path-was-the-w-e584ea.html

相关文章