Use GIT_BASE to dynamically determine project and credentials to clone
[releng/builder.git] / jjb / job.yaml.template
index 516791a92c64dbf3571c1c2607b54fc7cfd0e7dc..1107e9f72b9252ad2429ba21743a376465dab4d5 100644 (file)
         artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
+        - project-parameter:
+            project: '{project}'
         - gerrit-parameter:
             branch: '{branch}'
 
     scm:
         - gerrit-trigger-scm:
             credentials-id: '{ssh-credentials}'
-            scm-url: 'ssh://jenkins-releng@git.opendaylight.org:29418/PROJECT.git'
             refspec: '$GERRIT_REFSPEC'
             choosing-strategy: 'gerrit'
 
         artifactDaysToKeep: '{build-artifact-days-to-keep}'
         artifactNumToKeep: '{build-artifact-num-to-keep}'
 
+    parameters:
+        - project-parameter:
+            project: '{project}'
+
     scm:
         - gerrit-trigger-scm:
             credentials-id: '{ssh-credentials}'
-            scm-url: 'ssh://jenkins-releng@git.opendaylight.org:29418/PROJECT.git'
             refspec: ''
             choosing-strategy: 'default'
 
         artifactDaysToKeep: '{build-artifact-days-to-keep}'
         artifactNumToKeep: '{build-artifact-num-to-keep}'
 
+    parameters:
+        - project-parameter:
+            project: '{project}'
+
     scm:
         - git-scm:
             credentials-id: '{ssh-credentials}'
-            scm-url: 'ssh://jenkins-releng@git.opendaylight.org:29418/PROJECT.git'
             refspec: ''
             branch: '{branch}'