5a1077fb90e9968ce7dfe00940cd18e2c369140d
[releng.git] / jjb / copper / copper.yml
1 ###################################################
2 # All the jobs except verify have been removed!
3 # They will only be enabled on request by projects!
4 ###################################################
5 - project:
6     name: copper
7
8     project: '{name}'
9
10     jobs:
11         - 'copper-verify-{stream}'
12
13 # only master branch is enabled at the moment to keep no of jobs sane
14     stream:
15         - master:
16             branch: 'master'
17             gs-pathname: ''
18 #        - stable-brahmaputra:
19 #            branch: 'stable/brahmaputra'
20 #            gs-pathname: '/brahmaputra'
21
22 - job-template:
23     name: 'copper-verify-{stream}'
24
25     parameters:
26         - project-parameter:
27             project: '{project}'
28         - gerrit-parameter:
29             branch: '{stream}'
30         - 'opnfv-build-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             trigger-on:
41                 - patchset-created-event:
42                     exclude-drafts: 'false'
43                     exclude-trivial-rebase: 'false'
44                     exclude-no-code-change: 'false'
45                 - draft-published-event
46                 - comment-added-contains-event:
47                     comment-contains-value: 'recheck'
48                 - comment-added-contains-event:
49                     comment-contains-value: 'reverify'
50             projects:
51               - project-compare-type: 'ANT'
52                 project-pattern: '{project}'
53                 branches:
54                   - branch-compare-type: 'ANT'
55                     branch-pattern: '**/{stream}'
56                 forbidden-file-paths:
57                   - compare-type: ANT
58                     pattern: 'docs/**|.gitignore'
59
60     builders:
61         - shell: |
62             echo "Nothing to verify!"