| - scm: |
| name: doc-scm |
| scm: |
| - git: |
| url: 'https://gerrit.onap.org/r/{project}' |
| refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*' |
| branches: |
| - '{ref}' |
| |
| - trigger: |
| name: doc-rules-patchset-created |
| triggers: |
| - gerrit: |
| trigger-on: |
| - patchset-created-event |
| - comment-added-contains-event: |
| comment-contains-value: recheck |
| - comment-added-contains-event: |
| comment-contains-value: reverify |
| server-name: 'Primary' |
| projects: |
| - project-compare-type: 'ANT' |
| project-pattern: '**' |
| branches: |
| - branch-compare-type: 'ANT' |
| branch-pattern: '**/*' |
| - branch-compare-type: 'ANT' |
| branch-pattern: 'refs/tags/**' |
| |
| - builder: |
| name: doc-rules |
| builders: |
| - shell: | |
| echo Checking if all Sphinx warnings are treated as errors |
| find -name tox.ini |xargs grep sphinx-build | grep -v spelling | grep -v \\-W && exit 1 || exit 0 |
| |
| - job-template: |
| name: doc-rules |
| node: centos7-builder-2c-1g |
| triggers: |
| - doc-rules-patchset-created |
| scm: |
| - doc-scm: |
| ref: $GERRIT_REFSPEC |
| project: $GERRIT_PROJECT |
| builders: |
| - doc-rules |
| |
| - project: |
| name: 'doc-rules' |
| jobs: |
| - 'doc-rules' |