Adding a new verification job for testapi UI.
[releng.git] / jjb / sfc / sfc-project-jobs.yaml
1 ---
2 ###################################################
3 # All the jobs except verify have been removed!
4 # They will only be enabled on request by projects!
5 ###################################################
6 - project:
7     name: sfc-project-jobs
8
9     project: 'sfc'
10
11     jobs:
12       - 'sfc-verify-{stream}'
13
14     stream:
15       - master:
16           branch: '{stream}'
17           gs-pathname: ''
18           disabled: false
19       - fraser: &fraser
20           branch: 'stable/{stream}'
21           gs-pathname: '/{stream}'
22           disabled: false
23
24 - job-template:
25     name: 'sfc-verify-{stream}'
26
27     disabled: '{obj:disabled}'
28
29     parameters:
30       - project-parameter:
31           project: '{project}'
32           branch: '{branch}'
33       - 'opnfv-build-ubuntu-defaults'
34
35     scm:
36       - git-scm-gerrit
37
38     triggers:
39       - gerrit:
40           server-name: 'gerrit.opnfv.org'
41           trigger-on:
42             - patchset-created-event:
43                 exclude-drafts: 'false'
44                 exclude-trivial-rebase: 'false'
45                 exclude-no-code-change: 'false'
46             - draft-published-event
47             - comment-added-contains-event:
48                 comment-contains-value: 'recheck'
49             - comment-added-contains-event:
50                 comment-contains-value: 'reverify'
51           projects:
52             - project-compare-type: 'ANT'
53               project-pattern: '{project}'
54               branches:
55                 - branch-compare-type: 'ANT'
56                   branch-pattern: '**/{branch}'
57               disable-strict-forbidden-file-verification: 'true'
58               forbidden-file-paths:
59                 - compare-type: ANT
60                   pattern: 'docs/**|.gitignore'
61
62     builders:
63       - sfc-unit-tests
64
65 ################################
66 # job builders
67 ################################
68
69 - builder:
70     name: sfc-unit-tests
71     builders:
72       - shell: |
73           cd $WORKSPACE && yamllint $(git ls-tree -r HEAD --name-only  | egrep 'yml$|yaml$' | egrep -v 'scenarios')