Merge "Update Pharos Backup Job"
[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       - string:
50           name: GERRIT_REFSPEC
51           default: 'refs/heads/{branch}'
52           description: "JJB configured GERRIT_REFSPEC parameter"
53
54     scm:
55       - git-scm-gerrit
56
57     wrappers:
58       - timeout:
59           timeout: 150
60           fail: true
61
62     properties:
63       - logrotate-default
64       - throttle:
65           max-per-node: '{concurrent-builds}'
66           max-total: 10
67           option: 'project'
68       - build-blocker:
69           use-build-blocker: true
70           block-level: 'NODE'
71           blocking-jobs:
72             - 'apex-verify-iso-{stream}'
73
74     builders:
75       - 'apex-build'
76       - inject:
77           properties-content: ARTIFACT_TYPE=rpm
78       - 'apex-upload-artifact'
79
80 # ISO verify job
81 - job-template:
82     name: 'apex-verify-iso-{stream}'
83
84     # Job template for builds
85     #
86     # Required Variables:
87     #     stream:    branch with - in place of / (eg. stable)
88     #     branch:    branch (eg. stable)
89     node: 'apex-virtual-master'
90
91     disabled: false
92
93     concurrent: true
94
95     parameters:
96       - project-parameter:
97           project: '{project}'
98           branch: '{branch}'
99       - apex-parameter:
100           gs-pathname: '{gs-pathname}'
101       - string:
102           name: GIT_BASE
103           default: https://gerrit.opnfv.org/gerrit/$PROJECT
104           description: "Used for overriding the GIT URL coming from parameters macro."
105
106     scm:
107       - git-scm
108
109     properties:
110       - logrotate-default
111       - throttle:
112           max-per-node: 1
113           max-total: 10
114           option: 'project'
115
116     builders:
117       - 'apex-iso-verify'
118       - inject:
119           properties-content: ARTIFACT_TYPE=iso
120       - 'apex-upload-artifact'
121
122 ########################
123 # builder macros
124 ########################
125 - builder:
126     name: 'apex-build'
127     builders:
128       - shell:
129           !include-raw: ./apex-build.sh
130
131 - builder:
132     name: 'apex-iso-verify'
133     builders:
134       - shell:
135           !include-raw: ./apex-iso-verify.sh