Merge "Adding a new verification job for testapi UI."
[releng.git] / jjb / compass4nfv / compass-project-jobs.yaml
1 ---
2 - project:
3
4     name: compass-project
5
6     installer: 'compass'
7
8     project: 'compass4nfv'
9
10     slave-label: 'compass-virtual'
11
12     stream:
13       - master:
14           branch: '{stream}'
15           gs-pathname: ''
16           ppa-pathname: '/{stream}'
17           disabled: false
18       - danube:
19           branch: 'stable/{stream}'
20           gs-pathname: '/{stream}'
21           ppa-pathname: '/{stream}'
22           disabled: false
23       - gambia:
24           branch: 'stable/{stream}'
25           gs-pathname: '/{stream}'
26           ppa-pathname: '/{stream}'
27           disabled: false
28
29     jobs:
30       - '{installer}-build-daily-{stream}'
31       - 'compass-build-ppa-{stream}'
32
33 ########################
34 # job templates
35 ########################
36 - job-template:
37     name: '{installer}-build-daily-{stream}'
38
39     disabled: '{obj:disabled}'
40
41     concurrent: true
42
43     properties:
44       - logrotate-default
45       - throttle:
46           enabled: true
47           max-total: 1
48           max-per-node: 1
49           option: 'project'
50
51     parameters:
52       - project-parameter:
53           project: '{project}'
54           branch: '{branch}'
55       - compass-project-parameter:
56           installer: '{installer}'
57           gs-pathname: '{gs-pathname}'
58           ppa-pathname: '{ppa-pathname}'
59       - 'opnfv-build-ubuntu-defaults'
60       - '{installer}-defaults'
61
62     scm:
63       - git-scm
64
65     triggers:
66       - timed: 'H 8 * * *'
67
68     builders:
69       - shell:
70           !include-raw-escape: ./compass-build.sh
71       - shell:
72           !include-raw-escape: ./compass-upload-artifact.sh
73       - 'clean-workspace'
74
75 - job-template:
76     name: 'compass-build-ppa-{stream}'
77
78     description: "build ppa(using docker) in huawei lab"
79
80     disabled: '{obj:disabled}'
81
82     node: huawei-build
83
84     concurrent: true
85
86     properties:
87       - logrotate-default
88       - throttle:
89           enabled: true
90           max-total: 1
91           max-per-node: 1
92           option: 'project'
93
94     parameters:
95       - project-parameter:
96           project: '{project}'
97           branch: '{branch}'
98       - compass-project-parameter:
99           installer: '{installer}'
100           gs-pathname: '{gs-pathname}'
101           ppa-pathname: '{ppa-pathname}'
102       - '{node}-defaults'
103       - '{installer}-defaults'
104     scm:
105       - git-scm
106
107     builders:
108       - shell:
109           !include-raw-escape: ./compass-makeppa.sh
110
111
112 ########################
113 # parameter macros
114 ########################
115 - parameter:
116     name: compass-project-parameter
117     parameters:
118       - string:
119           name: BUILD_DIRECTORY
120           default: $WORKSPACE/build_output
121           description: "Directory where the build artifact will be located upon the completion of the build."
122       - string:
123           name: CACHE_DIRECTORY
124           default: "$HOME/opnfv/cache/$PROJECT{gs-pathname}"
125           description: "Directory where the cache to be used during the build is located."
126       - string:
127           name: GS_URL
128           default: '$GS_BASE{gs-pathname}'
129           description: "URL to Google Storage."
130       - string:
131           name: PPA_REPO
132           default: "https://artifacts.opnfv.org/compass4nfv/package{ppa-pathname}"
133       - string:
134           name: PPA_CACHE
135           default: "$WORKSPACE/work/repo/"