cloud-infra: Fix triggers for docs jobs
[infra/cicd.git] / jjb / cloud-infra / cloud-infra-docs.yaml
index ee9c614d016b134a277196414dcbe8b65fa1648b..caf64280baf76412a4245426c0aac3fdab61411f 100644 (file)
           clean_before: false
 
     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:
           project: 'infra\/docs'
           branch: '{branch}'
           files: 'docs/**'
+          custom-url: '* $JOB_NAME $BUILD_URL'
 
     wrappers:
       - nordixinfra-jjb-creds-wrapper