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