This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch HBASE-29078
in repository https://gitbox.apache.org/repos/asf/hbase.git

commit 6ba3e38527f17a9db0460af292d6de4fa8461408
Author: Duo Zhang <[email protected]>
AuthorDate: Thu Feb 13 23:21:36 2025 +0800

    HBASE-29078 Make 'checkout scm' faster in hbase site build jenkins file
---
 .../jenkins-scripts/generate-hbase-website.Jenkinsfile  | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/dev-support/jenkins-scripts/generate-hbase-website.Jenkinsfile 
b/dev-support/jenkins-scripts/generate-hbase-website.Jenkinsfile
index c5531296a5f..5b47b78f76a 100644
--- a/dev-support/jenkins-scripts/generate-hbase-website.Jenkinsfile
+++ b/dev-support/jenkins-scripts/generate-hbase-website.Jenkinsfile
@@ -43,7 +43,22 @@ pipeline {
       }
       steps {
         dir('hbase') {
-          checkout scm
+          script {
+            checkout([
+              $class: 'GitSCM',
+              branches: [[name: '*/master']], // 指定分支
+              doGenerateSubmoduleConfigurations: false,
+              extensions: [
+                [$class: 'CloneOption', 
+                  noTags: true,
+                  shallow: true,
+                  depth: 1
+                ],
+                [$class: 'CheckoutOption', timeout: 20]
+              ],
+              userRemoteConfigs: [[url: 'https://github.com/apache/hbase']]
+            ])
+          }
         }
         sh '''#!/usr/bin/env bash
           set -e

Reply via email to