Enable shallow clone for git repos
[releng/builder.git] / jjb / releng-macros.yaml
index 087529a71b37d3844ddafafe9fe3a0a0b1e0426f..b188da33d8a0557b199628997c904fad3643afb5 100644 (file)
             default: '{refspec}'
             description: "GERRIT_REFSPEC parameter if not given by trigger"
 
+- parameter:
+    name: controller-version-parameter
+    parameters:
+        - string:
+            name: ODL_VERSION
+            default: '{odl_version}'
+            description: 'Controller version (for use with openstacks networking_odl project)'
+
+- parameter:
+    name: patches-to-build-parameter
+    parameters:
+        - string:
+            name: PATCHES_TO_BUILD
+            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:
@@ -42,6 +66,7 @@
             branches:
                 - 'origin/{branch}'
             skip-tag: true
+            shallow-clone: true
             wipe-workspace: true
 
 - scm:
@@ -54,6 +79,7 @@
             branches:
                 - 'origin/$GERRIT_BRANCH'
             skip-tag: true
+            shallow-clone: true
             choosing-strategy: '{choosing-strategy}'
 
 - wrapper:
 - builder:
     name: jacoco-nojava-workaround
     builders:
-        - shell: 'mkdir -p $WORKSPACE/target/classes'
+        - shell: 'mkdir -p $WORKSPACE/target/classes $WORKSPACE/jacoco/classes'
 
 - builder:
     name: check-clm
     builders:
         - sonatype-clm:
             application-name: '{application-name}'
-            scan-targets: '**/target/**'
 
 - builder:
     name: releng-check-unicode