Add macro for github SCM and bits for ghrpb
[releng/global-jjb.git] / jjb / lf-macros.yaml
index 0c0e69b..175af86 100644 (file)
             recursive: '{submodule-recursive}'
           choosing-strategy: '{choosing-strategy}'
 
+- scm:
+    name: lf-infra-github-scm
+    scm:
+      - git:
+          credentials-id: '{jenkins-ssh-credential}'
+          url: '$GIT_URL/$PROJECT'
+          refspec: '{refspec}'
+          skip-tag: true
+          wipe-workspace: true
+          submodule:
+            recursive: '{submodule-recursive}'
+          choosing-strategy: '{choosing-strategy}'
+
 - wrapper:
     name: lf-infra-wrappers
     wrappers: