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