[CORD-3038] Lint check on new docs repo

Change-Id: I38e24a67088ba0df0a29fe2c237ddc36b304f1ee
diff --git a/jjb/docs.yaml b/jjb/docs.yaml
index 39477a6..d0f7480 100644
--- a/jjb/docs.yaml
+++ b/jjb/docs.yaml
@@ -2,13 +2,22 @@
 # CORD documentation verification and publish tasks
 
 - project:
+    name: verify-docs-legacy
+
+    # add repos that have documentation to the project list in both jobs
+    jobs:
+      - 'verify-docs-legacy':
+          project-regexp: '^(cord|platform-install|cord-tester|rcord|ecord|mcord|opencloud|xos|xos-gui|xos-tosca)$'
+          branch-regexp: '{supported-branches-regexp}'
+
+- project:
     name: verify-docs
 
     # add repos that have documentation to the project list in both jobs
     jobs:
       - 'verify-documentation':
-          project-regexp: '^(cord|platform-install|cord-tester|rcord|ecord|mcord|opencloud|xos|xos-gui|xos-tosca)$'
-          branch-regexp: '{supported-branches-regexp}'
+          project-regexp: '^(docs|cord-tester|xos|xos-gui|xos-tosca)$'
+          branch-regexp: '{modern-branches-regexp}'
 
 - project:
     name: publish-docs
@@ -20,6 +29,48 @@
 
 # Documentation job templates
 - job-template:
+    id: verify-docs-legacy
+    name: "verify-docs-legacy"
+
+    triggers:
+      - cord-infra-gerrit-trigger-patchset:
+          gerrit-server-name: '{gerrit-server-name}'
+          project-regexp: '{project-regexp}'
+          branch-regexp: '{branch-regexp}'
+          file-include-regexp: '{doc-files-regexp}'
+          dependency-jobs: '{dependency-jobs}'
+
+    properties:
+      - cord-infra-properties:
+          build-days-to-keep: '{build-days-to-keep}'
+          artifact-num-to-keep: '{artifact-num-to-keep}'
+
+    wrappers:
+      - lf-infra-wrappers:
+          build-timeout: '{build-timeout}'
+          jenkins-ssh-credential: '{jenkins-ssh-credential}'
+
+    scm:
+      - cord-infra-gerrit-repo-scm:
+          manifest-url: '{gerrit-server-url}/{cord-repo-manifest}'
+          branch: '$GERRIT_BRANCH'
+          destination-dir: 'cord'
+
+    node: '{build-node}'
+    project-type: freestyle
+    concurrent: false
+
+    builders:
+      - cord-infra-gerrit-repo-patch:
+          destination-dir: 'cord'
+          project: '$GERRIT_PROJECT'
+          change-number: '$GERRIT_CHANGE_NUMBER'
+          patchset-number: '$GERRIT_PATCHSET_NUMBER'
+      - shell: |
+          cd cord/build/docs
+          make test
+
+- job-template:
     id: verify-documentation
     name: "verify-documentation"
 
@@ -58,7 +109,7 @@
           change-number: '$GERRIT_CHANGE_NUMBER'
           patchset-number: '$GERRIT_PATCHSET_NUMBER'
       - shell: |
-          cd cord/build/docs
+          cd cord/docs
           make test
 
 - job-template: