Use computes + control for NUM_OS_SYSTEM
[releng.git] / jjb / apex / apex-project-jobs.yaml
1 ---
2 - project:
3     name: 'apex-project-jobs'
4     project: 'apex'
5
6     stream:
7       - master: &master
8           branch: 'master'
9           gs-pathname: ''
10           concurrent-builds: 3
11           disabled: false
12       - fraser: &fraser
13           branch: 'stable/{stream}'
14           gs-pathname: '/{stream}'
15           concurrent-builds: 3
16           disabled: false
17       - euphrates: &euphrates
18           branch: 'stable/euphrates'
19           gs-pathname: '/euphrates'
20           concurrent-builds: 3
21           disabled: true
22       - danube: &danube
23           branch: 'stable/danube'
24           gs-pathname: '/danube'
25           concurrent-builds: 1
26           disabled: true
27
28     jobs:
29       - 'apex-build-{stream}'
30       - 'apex-verify-iso-{stream}'
31
32 # Build phase
33 - job-template:
34     name: 'apex-build-{stream}'
35
36     # Job template for builds
37     #
38     # Required Variables:
39     #     stream:    branch with - in place of / (eg. stable)
40     #     branch:    branch (eg. stable)
41     node: 'apex-build-master'
42
43     disabled: false
44
45     concurrent: true
46
47     parameters:
48       - '{project}-defaults'
49       - project-parameter:
50           project: '{project}'
51           branch: '{branch}'
52       - apex-parameter:
53           gs-pathname: '{gs-pathname}'
54
55     scm:
56       - git-scm-gerrit
57
58     wrappers:
59       - timeout:
60           timeout: 150
61           fail: true
62
63     properties:
64       - logrotate-default
65       - throttle:
66           max-per-node: '{concurrent-builds}'
67           max-total: 10
68           option: 'project'
69       - build-blocker:
70           use-build-blocker: true
71           block-level: 'NODE'
72           blocking-jobs:
73             - 'apex-verify-iso-{stream}'
74
75     builders:
76       - 'apex-build'
77       - inject:
78           properties-content: ARTIFACT_TYPE=rpm
79       - 'apex-upload-artifact'
80
81 # ISO verify job
82 - job-template:
83     name: 'apex-verify-iso-{stream}'
84
85     # Job template for builds
86     #
87     # Required Variables:
88     #     stream:    branch with - in place of / (eg. stable)
89     #     branch:    branch (eg. stable)
90     node: 'apex-virtual-master'
91
92     disabled: false
93
94     concurrent: true
95
96     parameters:
97       - project-parameter:
98           project: '{project}'
99           branch: '{branch}'
100       - apex-parameter:
101           gs-pathname: '{gs-pathname}'
102       - string:
103           name: GIT_BASE
104           default: https://gerrit.opnfv.org/gerrit/$PROJECT
105           description: "Used for overriding the GIT URL coming from parameters macro."
106
107     scm:
108       - git-scm
109
110     properties:
111       - logrotate-default
112       - throttle:
113           max-per-node: 1
114           max-total: 10
115           option: 'project'
116
117     builders:
118       - 'apex-iso-verify'
119       - inject:
120           properties-content: ARTIFACT_TYPE=iso
121       - 'apex-upload-artifact'
122
123 ########################
124 # builder macros
125 ########################
126 - builder:
127     name: 'apex-build'
128     builders:
129       - shell:
130           !include-raw: ./apex-build.sh
131
132 - builder:
133     name: 'apex-iso-verify'
134     builders:
135       - shell:
136           !include-raw: ./apex-iso-verify.sh