Create Stable Branch Jobs for parser
[releng.git] / jjb / parser / parser.yml
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       - euphrates:
24           branch: 'stable/{stream}'
25           gs-pathname: '/{stream}'
26           disabled: false
27
28 - job-template:
29     name: 'parser-verify-{stream}'
30
31     disabled: '{obj:disabled}'
32
33     parameters:
34       - project-parameter:
35           project: '{project}'
36           branch: '{branch}'
37       - 'opnfv-build-ubuntu-defaults'
38
39     scm:
40       - git-scm-gerrit
41
42     triggers:
43       - gerrit:
44           server-name: 'gerrit.opnfv.org'
45           trigger-on:
46             - patchset-created-event:
47                 exclude-drafts: 'false'
48                 exclude-trivial-rebase: 'false'
49                 exclude-no-code-change: 'false'
50             - draft-published-event
51             - comment-added-contains-event:
52                 comment-contains-value: 'recheck'
53             - comment-added-contains-event:
54                 comment-contains-value: 'reverify'
55           projects:
56             - project-compare-type: 'ANT'
57               project-pattern: '{project}'
58               branches:
59                 - branch-compare-type: 'ANT'
60                   branch-pattern: '**/{branch}'
61               disable-strict-forbidden-file-verification: 'true'
62               forbidden-file-paths:
63                 - compare-type: ANT
64                   pattern: 'docs/**'
65                 - compare-type: ANT
66                   pattern: 'governance/**'
67                 - compare-type: ANT
68                   pattern: '*.txt|.gitignore|.gitreview|INFO|LICENSE'
69
70     builders:
71       - shell: |
72           #!/bin/bash
73           set -o errexit
74           set -o pipefail
75           set -o xtrace
76           export PATH=$PATH:/usr/local/bin/
77
78           # ut and pep8 check parser/tosca2heat
79           echo "Running tox on tosca2heat/tosca-parser ..."
80           cd $WORKSPACE/tosca2heat/tosca-parser && tox
81           echo "Running tox on tosca2heat/heat-translator ..."
82           cd $WORKSPACE/tosca2heat/heat-translator && tox