diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2023-02-17 14:48:10 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2023-02-17 15:12:30 +0100 |
commit | a49ce03d43dc9c6909896cd16f1ec5822860dfe8 (patch) | |
tree | 841059d1992cc92601eeecf233a31db6cd32a5e4 /jjb | |
parent | f8b6103a087fd1925c61afc9ec6f1cecf00b45f9 (diff) |
Enforce doc rules via Jenkins Jobs
Issue-ID: DOC-798
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: Iedcf958b611e72de5c864bd24b8bdf1500635bd2
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/doc/rules.yaml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/jjb/doc/rules.yaml b/jjb/doc/rules.yaml new file mode 100644 index 000000000..0595742db --- /dev/null +++ b/jjb/doc/rules.yaml @@ -0,0 +1,60 @@ +- scm: + name: doc-scm + scm: + - git: + url: 'https://gerrit.onap.org/gerrit/{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: gerrit.onap.org + projects: + - project-compare-type: 'REG_EXP' + project-pattern: '*' + branches: + - branch-compare-type: 'ANT' + branch-pattern: master + - branch-compare-type: 'ANT' + branch-pattern: kohn + +- parameter: + name: doc-rules-node + parameters: + - label: + name: node + default: '{node}' + +- builder: + name: doc-rules + builders: + - shell: | + find -name tox.ini |xargs grep sphinx-build | grep -v \\-W > /dev/null && exit 1 || exit 0 + +- job-template: + name: doc-rules + triggers: + - doc-rules-patchset-created + scm: + - doc-scm: + ref: $GERRIT_REFSPEC + project: $GERRIT_PROJECT + parameters: + - doc-rules-node: + node: centos7-builder-2c-1g + builders: + - doc-rules + +- project: + name: 'doc-rules' + jobs: + - 'doc-rules' |