cloud-infra: Bring in submodules for docs jobs
[infra/cicd.git] / jjb / cloud-infra / cloud-infra-docs.yaml
index ee9c614d016b134a277196414dcbe8b65fa1648b..66bedcd8fa7e5a6c7ef07c56dfc716ae2564f45b 100644 (file)
           refspec: $GERRIT_REFSPEC
           wipe_workspace: true
           clean_before: false
+          submodule:
+            recursive: true
+            tracking: true
 
     triggers:
-      - gerrit:
-          server-name: 'Nordix Gerrit'
-          trigger-on:
-            - patchset-created-event:
-                exclude-drafts: 'false'
-                exclude-trivial-rebase: 'false'
-                exclude-no-code-change: 'false'
-            - draft-published-event
-            - comment-added-contains-event:
-                comment-contains-value: 'recheck'
-            - comment-added-contains-event:
-                comment-contains-value: 'reverify'
-          projects:
-            - project-compare-type: 'REG_EXP'
-              project-pattern: 'infra\/engine|infra\/docs'
-              branches:
-                - branch-compare-type: 'ANT'
-                  branch-pattern: '**/{branch}'
-              disable-strict-forbidden-file-verification: 'false'
-              file-paths:
-                - compare-type: ANT
-                  pattern: 'docs/'
+      - nordix-gerrit-trigger-patchset-created:
+          project: 'infra\/engine|infra\/docs'
+          branch: '{branch}'
+          files: 'docs/**'
+          skip-vote:
+            successful: false
+            failed: false
+            unstable: false
+            notbuilt: false
           custom-url: '* $JOB_NAME $BUILD_URL'
 
     builders:
           refspec: ''
           wipe_workspace: true
           clean_before: false
+          submodule:
+            recursive: true
+            tracking: true
 
     triggers:
       - nordix-gerrit-trigger-change-merged:
           project: 'infra\/docs'
           branch: '{branch}'
           files: 'docs/**'
+          custom-url: '* $JOB_NAME $BUILD_URL'
 
     wrappers:
       - nordixinfra-jjb-creds-wrapper