installers: Use global macro 'clean-workspace'
[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
23     jobs:
24         - '{installer}-build-daily-{stream}'
25         - 'compass-build-ppa-{stream}'
26
27 ########################
28 # job templates
29 ########################
30 - job-template:
31     name: '{installer}-build-daily-{stream}'
32
33     disabled: '{obj:disabled}'
34
35     concurrent: true
36
37     properties:
38         - logrotate-default
39         - throttle:
40             enabled: true
41             max-total: 1
42             max-per-node: 1
43             option: 'project'
44
45     parameters:
46         - project-parameter:
47             project: '{project}'
48             branch: '{branch}'
49         - compass-project-parameter:
50             installer: '{installer}'
51             gs-pathname: '{gs-pathname}'
52             ppa-pathname: '{ppa-pathname}'
53         - 'opnfv-build-ubuntu-defaults'
54         - '{installer}-defaults'
55
56     scm:
57         - git-scm
58
59     triggers:
60         - timed: 'H 8 * * *'
61
62     builders:
63         - shell:
64             !include-raw-escape: ./compass-build.sh
65         - shell:
66             !include-raw-escape: ./compass-upload-artifact.sh
67         - 'clean-workspace'
68
69 - job-template:
70     name: 'compass-build-ppa-{stream}'
71
72     description: "build ppa(using docker) in huawei lab"
73
74     disabled: '{obj:disabled}'
75
76     node: huawei-build
77
78     concurrent: true
79
80     properties:
81         - logrotate-default
82         - throttle:
83             enabled: true
84             max-total: 1
85             max-per-node: 1
86             option: 'project'
87
88     parameters:
89         - project-parameter:
90             project: '{project}'
91             branch: '{branch}'
92         - compass-project-parameter:
93             installer: '{installer}'
94             gs-pathname: '{gs-pathname}'
95             ppa-pathname: '{ppa-pathname}'
96         - '{node}-defaults'
97         - '{installer}-defaults'
98     scm:
99         - git-scm
100
101     builders:
102         - shell:
103             !include-raw-escape: ./compass-makeppa.sh
104
105
106
107 ########################
108 # parameter macros
109 ########################
110 - parameter:
111     name: compass-project-parameter
112     parameters:
113         - string:
114             name: BUILD_DIRECTORY
115             default: $WORKSPACE/build_output
116             description: "Directory where the build artifact will be located upon the completion of the build."
117         - string:
118             name: CACHE_DIRECTORY
119             default: "$HOME/opnfv/cache/$PROJECT{gs-pathname}"
120             description: "Directory where the cache to be used during the build is located."
121         - string:
122             name: GS_URL
123             default: '$GS_BASE{gs-pathname}'
124             description: "URL to Google Storage."
125         - string:
126             name: PPA_REPO
127             default: "http://artifacts.opnfv.org/compass4nfv/package{ppa-pathname}"
128         - string:
129             name: PPA_CACHE
130             default: "$WORKSPACE/work/repo/"
131