From d649ce42ffd1324d0310ca57c9a7ad6bf3e68d91 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 26 Jul 2026 23:46:43 +0100 Subject: [PATCH] Add build discarding properties to Jenkinsfile Introduce a build discarder configuration in the Jenkinsfile to retain the last 10 builds, improving build management and resource utilization. --- Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 038ed10..6a36e4b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,3 +1,7 @@ +properties([ + buildDiscarder(logRotator(numToKeepStr: '10')) +]) + def writeBuildMetadata() { nodejs(nodeJSInstallationName: 'Node23') { if (isUnix()) {