From 1614f1fc7f6b2aca23b63f462687f10e01eb0bb0 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 7 Sep 2025 12:11:44 -0500 Subject: [PATCH] jenkins: Add PVC for Buildroot jobs Buildroot jobs really benefit from having a persistent workspace volume instead of an ephemeral one. This way, only the packages, etc. that have changed since the last build need to be built, instead of the whole toolchain and operating system. --- jenkins/kustomization.yaml | 1 + jenkins/workspace-volume.yaml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 jenkins/workspace-volume.yaml diff --git a/jenkins/kustomization.yaml b/jenkins/kustomization.yaml index d2140f8..c64b00b 100644 --- a/jenkins/kustomization.yaml +++ b/jenkins/kustomization.yaml @@ -10,6 +10,7 @@ resources: - secrets.yaml - iscsi.yaml - ssh-host-keys +- workspace-volume.yaml patches: - patch: | diff --git a/jenkins/workspace-volume.yaml b/jenkins/workspace-volume.yaml new file mode 100644 index 0000000..2284215 --- /dev/null +++ b/jenkins/workspace-volume.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: buildroot + namespace: jenkins-jobs + labels: + app.kubernetes.io/name: buildroot + app.kubernetes.io/component: jenkins +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Gi + storageClassName: synology-iscsi