Restrict Gerrit Triggers to OPNFV Gerrit Server
[releng.git] / jjb / qtip / qtip-project-jobs.yml
1 - project:
2     name: qtip
3
4     project: '{name}'
5
6     jobs:
7         - 'qtip-verify-{stream}'
8
9 # only master branch is enabled at the moment to keep no of jobs sane
10     stream:
11         - master:
12             branch: '{stream}'
13             gs-pathname: ''
14             disabled: false
15         - colorado:
16             branch: 'stable/{stream}'
17             gs-pathname: '/{stream}'
18             disabled: false
19
20 - job-template:
21     name: 'qtip-verify-{stream}'
22
23     disabled: '{obj:disabled}'
24
25     parameters:
26         - project-parameter:
27             project: '{project}'
28         - gerrit-parameter:
29             branch: '{branch}'
30         - 'opnfv-build-ubuntu-defaults'
31
32     scm:
33         - gerrit-trigger-scm:
34             credentials-id: '{ssh-credentials}'
35             refspec: '$GERRIT_REFSPEC'
36             choosing-strategy: '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                 forbidden-file-paths:
58                   - compare-type: ANT
59                     pattern: 'docs/**|.gitignore'
60
61     builders:
62         - shell: |
63             #!/bin/bash
64             set -o errexit
65             set -o pipefail
66             set -o xtrace
67
68             tox