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