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