Merge "Create Stable Branch Jobs for clover"
[releng.git] / jjb / parser / parser.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: parser
8
9     project: '{name}'
10
11     jobs:
12       - 'parser-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: 'parser-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/**'
61                 - compare-type: ANT
62                   pattern: 'governance/**'
63                 - compare-type: ANT
64                   pattern: '*.txt|.gitignore|.gitreview|INFO|LICENSE'
65
66     builders:
67       - shell: |
68           #!/bin/bash
69           set -o errexit
70           set -o pipefail
71           set -o xtrace
72           export PATH=$PATH:/usr/local/bin/
73
74           # ut and pep8 check parser/tosca2heat
75           echo "Running tox on tosca2heat/tosca-parser ..."
76           cd $WORKSPACE/tosca2heat/tosca-parser && tox
77           echo "Running tox on tosca2heat/heat-translator ..."
78           cd $WORKSPACE/tosca2heat/heat-translator && tox