Fix Doctor jjb syntax
[releng.git] / jjb / doctor / doctor.yml
index 9bcf20b..39c20dc 100644 (file)
@@ -2,7 +2,7 @@
     name: doctor
     jobs:
         - 'doctor-test'
-        - 'doctor-daily-master'
+        - 'doctor-daily-{stream}'
         - 'doctor-merge'
         - 'doctor-verify'
 
@@ -18,6 +18,8 @@
 - job-template:
     name: doctor-test
 
+    node: master
+
     project-type: freestyle
 
     logrotate:
@@ -31,7 +33,9 @@
             echo "Hello world from doctor"
 
 - job-template:
-    name: 'doctor-daily-master'
+    name: 'doctor-daily-{stream}'
+
+    node: master
 
     # Job template for daily builders
     #
     parameters:
         - project-parameter:
             project: '{project}'
+        - string:
+            name: GIT_BASE
+            default: 'https://gerrit.opnfv.org/gerrit/{project}'
+            description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
 
     scm:
         - git-scm:
         - test-macro
 
     builders:
-        - shell: |
-            pwd
-            find .
-            echo "Hello world from doctor {somevar} daily"
+        - shell:
+            !include-raw docu-build.sh
 
     postbuilders:
         - test-macro
@@ -80,6 +86,8 @@
 - job-template:
     name: 'doctor-verify'
 
+    node: master
+
     project-type: freestyle
 
     logrotate:
             project: '{project}'
         - gerrit-parameter:
             branch: 'master'
+        - string:
+            name: GIT_BASE
+            default: 'https://gerrit.opnfv.org/gerrit/{project}'
+            description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
     scm:
         - gerrit-trigger-scm:
             credentials-id: '{ssh-credentials}'
                     branch-pattern: '**/master'
 
     builders:
-        - shell: |
-            pwd
-            find .
-            echo "verify logic goes here"
+        - shell:
+            !include-raw docu-verify.sh
 
 - job-template:
     name: 'doctor-merge'
 
+    node: master
+
     # builder-merge job to run JJB update
     #
     # This job's purpose is to update all the JJB
             project: '{project}'
         - gerrit-parameter:
             branch: 'master'
+        - string:
+            name: GIT_BASE
+            default: 'https://gerrit.opnfv.org/gerrit/{project}'
+            description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
 
     scm:
         - gerrit-trigger-scm:
                       branch-pattern: '**/master'
 
     builders:
-        - shell: |
-            pwd
-            find .
-            echo "merge logic goes here"
+        - shell:
+            !include-raw docu-build.sh