diff --git a/Jenkinsfile b/Jenkinsfile index debaa9c..2ca7eca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,6 +21,12 @@ pipeline { } } + options { + // Log-Rotation: Bewahre nur die letzten 10 Builds auf + // und lösche Berichte/Artefakte von Builds, die älter als 7 Tage sind. + buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10', daysToKeepStr: '7')) + } + stages { stage('Checkout Source') { steps { @@ -66,19 +72,6 @@ pipeline { } } - stage('Workspace Check') { - steps { - container('dotnet8') { - // Listet alle Dateien auf. - // Wenn du hier Ordner wie 'bin' oder 'obj' siehst, BEVOR dotnet build lief, - // dann bleibt der Workspace erhalten. - sh 'ls -R' - - // Optional: Erstelle eine Testdatei, um es beim nächsten Mal zu sehen - } - } - } - stage('Set Build Name') { steps { script {