fe9170578c99f87e80cc5da77f6081c63cc34196
[releng.git] / jjb / compass4nfv / compass-project-jobs.yml
1 - project:
2
3     name: compass-project
4
5     installer: 'compass'
6
7     project: 'compass4nfv'
8
9     slave-label: 'compass-virtual'
10
11     stream:
12         - master:
13             branch: '{stream}'
14             gs-pathname: ''
15             ppa-pathname: '/{stream}'
16             disabled: false
17         - danube:
18             branch: 'stable/{stream}'
19             gs-pathname: '/{stream}'
20             ppa-pathname: '/{stream}'
21             disabled: false
22         - euphrates:
23             branch: 'stable/{stream}'
24             gs-pathname: '/{stream}'
25             ppa-pathname: '/{stream}'
26             disabled: false
27
28     jobs:
29         - '{installer}-build-daily-{stream}'
30         - 'compass-build-ppa-{stream}'
31
32 ########################
33 # job templates
34 ########################
35 - job-template:
36     name: '{installer}-build-daily-{stream}'
37
38     disabled: '{obj:disabled}'
39
40     concurrent: true
41
42     properties:
43         - logrotate-default
44         - throttle:
45             enabled: true
46             max-total: 1
47             max-per-node: 1
48             option: 'project'
49
50     parameters:
51         - project-parameter:
52             project: '{project}'
53             branch: '{branch}'
54         - compass-project-parameter:
55             installer: '{installer}'
56             gs-pathname: '{gs-pathname}'
57             ppa-pathname: '{ppa-pathname}'
58         - 'opnfv-build-ubuntu-defaults'
59         - '{installer}-defaults'
60
61     scm:
62         - git-scm
63
64     triggers:
65         - timed: 'H 8 * * *'
66
67     builders:
68         - shell:
69             !include-raw-escape: ./compass-build.sh
70         - shell:
71             !include-raw-escape: ./compass-upload-artifact.sh
72         - 'clean-workspace'
73
74 - job-template:
75     name: 'compass-build-ppa-{stream}'
76
77     description: "build ppa(using docker) in huawei lab"
78
79     disabled: '{obj:disabled}'
80
81     node: huawei-build
82
83     concurrent: true
84
85     properties:
86         - logrotate-default
87         - throttle:
88             enabled: true
89             max-total: 1
90             max-per-node: 1
91             option: 'project'
92
93     parameters:
94         - project-parameter:
95             project: '{project}'
96             branch: '{branch}'
97         - compass-project-parameter:
98             installer: '{installer}'
99             gs-pathname: '{gs-pathname}'
100             ppa-pathname: '{ppa-pathname}'
101         - '{node}-defaults'
102         - '{installer}-defaults'
103     scm:
104         - git-scm
105
106     builders:
107         - shell:
108             !include-raw-escape: ./compass-makeppa.sh
109
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: "http://artifacts.opnfv.org/compass4nfv/package{ppa-pathname}"
133         - string:
134             name: PPA_CACHE
135             default: "$WORKSPACE/work/repo/"
136