diff --git a/scripts/jenkins/clang.groovy b/scripts/jenkins/clang.groovy
index d7cc15d923bb3c9c10cac7df01e51db8855d47fe..57659eda408773283f3b3717b4ad7359eeb8403b 100644
--- a/scripts/jenkins/clang.groovy
+++ b/scripts/jenkins/clang.groovy
@@ -42,3 +42,5 @@ def build(buildDir, cmakeOptions, target) {
     stage 'Build'
     sh "cd ${buildDir} && make -j \$(nproc) ${target}"
 }
+
+properties ([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '25']]])
diff --git a/scripts/jenkins/coverage.groovy b/scripts/jenkins/coverage.groovy
index 66a191a2657629ed82f75bc18c94c29a71caaf8d..5df3747fd70892f7822a03bb46fc5c4888e9d64f 100644
--- a/scripts/jenkins/coverage.groovy
+++ b/scripts/jenkins/coverage.groovy
@@ -26,3 +26,5 @@ def build(buildDir, cmakeOptions, target) {
     stage 'Build'
     sh "cd ${buildDir} && make -j \$(nproc) ${target}"
 }
+
+properties ([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '', artifactNumToKeepStr: '1', daysToKeepStr: '', numToKeepStr: '5']]])
diff --git a/scripts/jenkins/gcc.groovy b/scripts/jenkins/gcc.groovy
index e81488d33853c6ba412669992f374b331dbb623d..6de8bbf4df84ef59f5a3fd6896a5de47e9c9dd2e 100644
--- a/scripts/jenkins/gcc.groovy
+++ b/scripts/jenkins/gcc.groovy
@@ -54,3 +54,5 @@ def publishTestReports(ctestPattern, gtestPattern, parseRulefile) {
     step([$class: 'GitHubCommitNotifier', resultOnFailure: 'FAILURE', statusMessage: [content: 'Finished Jenkins gcc build']])
 
 }
+
+properties ([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '25']]])