New external network for ericsson-pod2
[releng.git] / jjb / oscar / oscar.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: oscar
7
8     project: '{name}'
9
10     jobs:
11         - 'oscar-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 #        - brahmaputra:
19 #            branch: 'stable/brahmaputra'
20 #            gs-pathname: '/brahmaputra'
21
22 - job-template:
23     name: 'oscar-verify-{stream}'
24
25     parameters:
26         - project-parameter:
27             project: '{project}'
28         - gerrit-parameter:
29             branch: '{branch}'
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: '**/{branch}'
56                 forbidden-file-paths:
57                   - compare-type: ANT
58                     pattern: 'docs/**|.gitignore'
59
60     builders:
61         - shell: |
62             echo "Nothing to verify!"