From 5a1cd22dc6e7b69929806d7b97500a9cb5e87f12 Mon Sep 17 00:00:00 2001 From: jared Date: Thu, 26 Jun 2025 08:04:19 +0200 Subject: [PATCH] Jenkinsfile aktualisiert Added options to delete old build --- Jenkinsfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f4e4b7d..05f4320 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,3 @@ - pipeline { agent any @@ -6,6 +5,15 @@ pipeline { nodejs 'NodeJS-24.2.0' } + options { + buildDiscarder( + BuildHistoryManager([ + [ continueAfterMatch: false, matchAtMost: 5 ], + [ actions: [ DeleteBuild() ] ] + ]) + ) + } + stages { stage('Install Dependencies') { steps {