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

apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new a5fc7b5162 Use git shallow clone of depth 1 for Jenkins deploy job
a5fc7b5162 is described below

commit a5fc7b51622bd0716b27bb1c0b2e302e9722b468
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Wed Jul 8 11:09:44 2026 +0200

    Use git shallow clone of depth 1 for Jenkins deploy job
    
    it allows to reduce the amount of space taken by the .git folder. it
    will decrease the size of it from 350M to 18M. Given that it is kept in
    workspace history of the last 6 builds, it will save 2.28G of disk space
    on Jenkins.
    it also saves few seconds to do the git clone.
    
    Not doing it for the Sonarcloud job as it requires the git history
    
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 Jenkinsfile | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index 7ed82ff9f7..bb465b5455 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -33,9 +33,22 @@ pipeline {
             logRotator(artifactNumToKeepStr: '5', numToKeepStr: '10')
         )
         disableConcurrentBuilds()
+        skipDefaultCheckout()
     }
 
     stages {
+        stage('Checkout') {
+            steps {
+                checkout([
+                                       $class: 'GitSCM',
+                    branches: scm.branches,
+                    userRemoteConfigs: scm.userRemoteConfigs,
+                    extensions: [
+                                               [$class: 'CloneOption', 
shallow: true, depth: 1, noTags: true]
+                                       ]
+                ])
+            }
+        }
         stage('Deploy') {
             environment {
                 MAVEN_OPTS = "-Xmx4600m"

Reply via email to