blob: 5f74492c3c8f8e2505c69488515ad3cf2e6364e5 [file] [log] [blame]
Cédric Olliviera49ce032023-02-17 14:48:10 +01001- scm:
2 name: doc-scm
3 scm:
4 - git:
Cédric Ollivier20ecc762023-03-15 09:45:37 +01005 url: 'https://gerrit.onap.org/r/{project}'
Cédric Olliviera49ce032023-02-17 14:48:10 +01006 refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*'
7 branches:
8 - '{ref}'
9
10- trigger:
11 name: doc-rules-patchset-created
12 triggers:
13 - gerrit:
14 trigger-on:
15 - patchset-created-event
16 - comment-added-contains-event:
17 comment-contains-value: recheck
18 - comment-added-contains-event:
19 comment-contains-value: reverify
Cédric Ollivier132ab1a2023-03-14 14:57:11 +010020 server-name: 'Primary'
Cédric Olliviera49ce032023-02-17 14:48:10 +010021 projects:
Cédric Ollivier132ab1a2023-03-14 14:57:11 +010022 - project-compare-type: 'ANT'
23 project-pattern: '**'
Cédric Olliviera49ce032023-02-17 14:48:10 +010024 branches:
25 - branch-compare-type: 'ANT'
Cédric Ollivier132ab1a2023-03-14 14:57:11 +010026 branch-pattern: '**/*'
Cédric Olliviera49ce032023-02-17 14:48:10 +010027 - branch-compare-type: 'ANT'
Cédric Ollivier132ab1a2023-03-14 14:57:11 +010028 branch-pattern: 'refs/tags/**'
Cédric Olliviera49ce032023-02-17 14:48:10 +010029
30- builder:
31 name: doc-rules
32 builders:
33 - shell: |
Cédric Ollivier2dcc7012023-03-15 21:07:37 +010034 echo Checking if all Sphinx warnings are treated as errors
35 find -name tox.ini |xargs grep sphinx-build | grep -v spelling | grep -v \\-W && exit 1 || exit 0
Cédric Olliviera49ce032023-02-17 14:48:10 +010036
37- job-template:
38 name: doc-rules
Cédric Ollivier132ab1a2023-03-14 14:57:11 +010039 node: centos7-builder-2c-1g
Cédric Olliviera49ce032023-02-17 14:48:10 +010040 triggers:
41 - doc-rules-patchset-created
42 scm:
43 - doc-scm:
44 ref: $GERRIT_REFSPEC
45 project: $GERRIT_PROJECT
Cédric Olliviera49ce032023-02-17 14:48:10 +010046 builders:
47 - doc-rules
48
49- project:
50 name: 'doc-rules'
51 jobs:
52 - 'doc-rules'