From 61da5b80badfb329fd1dd0eeba1adee428f90f50 Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Sun, 12 Jan 2025 21:20:40 +0800 Subject: [PATCH] HBASE-29067 Stagger the nightly tests on jenkins (#6595) Run all jobs every 3 days, master and branch-3 on first day, branch-2 on second day, and other branches on third day Signed-off-by: Nihal Jain Signed-off-by: Istvan Toth (cherry picked from commit 7170b27986f82116687787a2360f11ec6b8400fe) --- dev-support/Jenkinsfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile index 833c425b4eff..5b9a08545edd 100644 --- a/dev-support/Jenkinsfile +++ b/dev-support/Jenkinsfile @@ -21,7 +21,15 @@ pipeline { } } triggers { - pollSCM('@daily') + if (env.BRANCH_NAME == 'master') { + pollSCM('H H 1-31/3 * *') + } else if (env.BRANCH_NAME == 'branch-3') { + pollSCM('H H 1-31/3 * *') + else if (env.BRANCH_NAME == 'branch-2') { + pollSCM('H H 2-31/3 * *') + } else { + pollSCM('H H 3-31/3 * *') + } } options { buildDiscarder(logRotator(numToKeepStr: '20'))