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