You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by za...@apache.org on 2024/07/19 09:11:34 UTC
(hive) branch master updated: HIVE-28359: Discard old builds in Jenkins to avoid disk space exhaustion (Stamatis Zampetakis reviewed by Zoltan Haindrich)
This is an automated email from the ASF dual-hosted git repository.
zabetak pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new 4835968fcdf HIVE-28359: Discard old builds in Jenkins to avoid disk space exhaustion (Stamatis Zampetakis reviewed by Zoltan Haindrich)
4835968fcdf is described below
commit 4835968fcdf44ec759f91dbeafec71bf059de42e
Author: Stamatis Zampetakis <za...@gmail.com>
AuthorDate: Wed Jul 3 13:59:19 2024 +0200
HIVE-28359: Discard old builds in Jenkins to avoid disk space exhaustion (Stamatis Zampetakis reviewed by Zoltan Haindrich)
Currently Jenkins retains the builds from all active branches/PRs leading to disk space exhaustion and CI failures requiring manual intervention to restore the services.
Close apache/hive#5332
---
Jenkinsfile | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Jenkinsfile b/Jenkinsfile
index fc11bb3299e..ce05c408e8a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -16,7 +16,14 @@
* limitations under the License.
*/
+def discardDaysToKeep = '365'
+def discardNumToKeep = '' // Unlimited
+if (env.BRANCH_NAME != 'master') {
+ discardDaysToKeep = '60'
+ discardNumToKeep = '5'
+}
properties([
+ buildDiscarder(logRotator(daysToKeepStr: discardDaysToKeep, numToKeepStr: discardNumToKeep)),
// max 5 build/branch/day
rateLimitBuilds(throttle: [count: 5, durationName: 'day', userBoost: true]),
// do not run multiple testruns on the same branch