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