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