Use computes + control for NUM_OS_SYSTEM
[releng.git] / jjb / dovetail / dovetail-project-jobs.yaml
1 ---
2 ###################################################
3 # Non-ci jobs for Dovetail project
4 # They will only be enabled on request by projects!
5 ###################################################
6 - project:
7     name: dovetail-project-jobs
8
9     project: 'dovetail'
10
11     jobs:
12       - 'dovetail-verify-{stream}'
13       - 'dovetail-merge-{stream}'
14
15     stream:
16       - master:
17           branch: '{stream}'
18           disabled: false
19       - danube:
20           branch: 'stable/{stream}'
21           gs-pathname: '/{stream}'
22           disabled: false
23
24 ################################
25 # job templates
26 ################################
27
28 - job-template:
29     name: 'dovetail-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     builders:
62       - dovetail-unit-tests
63
64 - job-template:
65     name: 'dovetail-merge-{stream}'
66
67     disabled: '{obj:disabled}'
68
69     parameters:
70       - project-parameter:
71           project: '{project}'
72           branch: '{branch}'
73       - 'opnfv-build-ubuntu-defaults'
74
75     scm:
76       - git-scm
77
78     triggers:
79       - gerrit:
80           server-name: 'gerrit.opnfv.org'
81           trigger-on:
82             - change-merged-event
83             - comment-added-contains-event:
84                 comment-contains-value: 'remerge'
85           projects:
86             - project-compare-type: 'ANT'
87               project-pattern: '{project}'
88               branches:
89                 - branch-compare-type: 'ANT'
90                   branch-pattern: '**/{branch}'
91
92     builders:
93       - dovetail-unit-tests
94
95 ################################
96 # builders for dovetail project
97 ###############################
98 - builder:
99     name: dovetail-hello-world
100     builders:
101       - shell: |
102           #!/bin/bash
103           set -o errexit
104
105           echo "hello world"
106
107
108 - builder:
109     name: dovetail-unit-tests
110     builders:
111       - shell: |
112           #!/bin/bash
113           set -o errexit
114           set -o pipefail
115
116           tox