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