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 6358f70bd51 HIVE-28969: Use shallow clone with limited depth to reduce 
.git directory size (#5821)
6358f70bd51 is described below

commit 6358f70bd51e3c3003514088d097dcc73113cd64
Author: Stamatis Zampetakis <zabe...@gmail.com>
AuthorDate: Tue Jun 24 16:12:47 2025 +0200

    HIVE-28969: Use shallow clone with limited depth to reduce .git directory 
size (#5821)
    
    1. Reduce the disk space occupied by the .git directory in CI
    2. Speed up checkout times
    
    Pull-requests are now limited to 50 commits (value of depth parameter). 
When the number of commits exceeds this number the CI run will abort since it 
will not be able to merge the PR branch with master. Affected PRs can either 
temporarily increase the value of the depth parameter or squash some commits 
together.
---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 70aca32c8a7..5b4b6b14208 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -226,7 +226,7 @@ jobWrappers {
             $class: 'GitSCM',
             branches: scm.branches,
             doGenerateSubmoduleConfigurations: 
scm.doGenerateSubmoduleConfigurations,
-            extensions: scm.extensions,
+            extensions: [ cloneOption(honorRefspec: true, depth: 50, noTags: 
true, shallow: true) ],
             userRemoteConfigs: scm.userRemoteConfigs + [[
               name: 'origin',
               refspec: scm.userRemoteConfigs[0].refspec+ " 
+refs/heads/${CHANGE_TARGET}:refs/remotes/origin/target",

Reply via email to