From d292184aa8f138957773404607a339bce3f5faf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Mon, 13 Aug 2018 08:14:54 -0400 Subject: [PATCH] limit number of mobile builds saved by Jenkins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- ci/Jenkinsfile | 7 +++++++ ci/Jenkinsfile.nightly_fastlane | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index 12b5dfda64..8742da2789 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -1,3 +1,10 @@ +properties([ + buildDiscarder(logRotator( + numToKeepStr: '3', + daysToKeepStr: '7', + )) +]) + env.LANG="en_US.UTF-8" env.LANGUAGE="en_US.UTF-8" env.LC_ALL="en_US.UTF-8" diff --git a/ci/Jenkinsfile.nightly_fastlane b/ci/Jenkinsfile.nightly_fastlane index da7e171adb..a0d9970e72 100644 --- a/ci/Jenkinsfile.nightly_fastlane +++ b/ci/Jenkinsfile.nightly_fastlane @@ -1,5 +1,11 @@ // We need nightly builds for users who want to test apps, diawi removes old builds and limits downloads, hence the need for Artifactory. // To see env: echo sh(returnStdout: true, script: 'env') +properties([ + buildDiscarder(logRotator( + numToKeepStr: '30', + daysToKeepStr: '30', + )) +]) env.LANG="en_US.UTF-8" env.LANGUAGE="en_US.UTF-8"