diff --git a/scripts/jenkins/clang.groovy b/scripts/jenkins/clang.groovy
index d7cc15d923bb3c9c10cac7df01e51db8855d47fe..daf9b601a5c00bf20e50c6a459eee7fdb527fdd7 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..37d49c7009175f2ce87c704d0a7f454d9e61b9d5 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..cc038c470e31bdf2b4e2d61b24ac58a058f47743 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']]]