Enable shallow clone for git repos
[releng/builder.git] / jjb / releng-macros.yaml
index cbd80dd03847b7521d635f95dfa35117b1e3f544..b188da33d8a0557b199628997c904fad3643afb5 100644 (file)
             default: ''
             description: 'csv list of patches in project:changeset format to build distribution with'
 
+- parameter:
+    name: distribution-branch-to-build-parameter
+    parameters:
+        - string:
+            name: DISTRIBUTION_BRANCH_TO_BUILD
+            default: 'master'
+            description: 'distribution repo branch to build with'
+
 - scm:
     name: git-scm
     scm:
@@ -58,6 +66,7 @@
             branches:
                 - 'origin/{branch}'
             skip-tag: true
+            shallow-clone: true
             wipe-workspace: true
 
 - scm:
@@ -70,6 +79,7 @@
             branches:
                 - 'origin/$GERRIT_BRANCH'
             skip-tag: true
+            shallow-clone: true
             choosing-strategy: '{choosing-strategy}'
 
 - wrapper:
     builders:
         - sonatype-clm:
             application-name: '{application-name}'
-            scan-targets: '**/target/**'
 
 - builder:
     name: releng-check-unicode