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