fix ci jobs (daily && no branch param)
[releng.git] / jjb / armband / armband-project-jobs.yml
1 ###################################################
2 # All the jobs except verify have been removed!
3 # They will only be enabled on request by projects!
4 ###################################################
5 - project:
6     name: armband
7
8     project: '{name}'
9
10     installer: 'fuel'
11
12     jobs:
13         - 'armband-{installer}-build-daily-{stream}'
14
15     stream:
16         - master:
17             branch: '{stream}'
18             gs-pathname: ''
19         - colorado:
20             branch: 'stable/{stream}'
21             gs-pathname: '/{stream}'
22
23 - job-template:
24     name: 'armband-{installer}-build-daily-{stream}'
25
26     concurrent: false
27
28     properties:
29         - throttle:
30             enabled: true
31             max-total: 1
32             max-per-node: 1
33             option: 'project'
34
35     parameters:
36         - project-parameter:
37             project: '{project}'
38         - gerrit-parameter:
39             branch: '{branch}'
40         - 'opnfv-build-arm-defaults'
41         - '{installer}-defaults'
42         - armband-project-parameter:
43             gs-pathname: '{gs-pathname}'
44
45     scm:
46         - git-scm
47
48     triggers:
49         - pollscm:
50             cron: '0 H/4 * * *'
51
52     wrappers:
53         - timeout:
54             timeout: 360
55             fail: true
56
57     builders:
58         - shell:
59             !include-raw-escape: ./build.sh
60         - shell:
61             !include-raw-escape: ./upload-artifacts.sh
62
63     publishers:
64         - email:
65             recipients: armband@enea.com
66
67 ########################
68 # parameter macros
69 ########################
70 - parameter:
71     name: armband-project-parameter
72     parameters:
73         - string:
74             name: BUILD_DIRECTORY
75             default: $WORKSPACE/build_output
76             description: "Directory where the build artifact will be located upon the completion of the build."
77         - string:
78             name: CACHE_DIRECTORY
79             default: $HOME/opnfv/cache/$INSTALLER_TYPE
80             description: "Directory where the cache to be used during the build is located."
81         - string:
82             name: GS_URL
83             default: artifacts.opnfv.org/$PROJECT{gs-pathname}
84             description: "URL to Google Storage."
85         - choice:
86             name: FORCE_BUILD
87             choices:
88                 - 'false'
89                 - 'true'
90             description: 'Force build even if there are no changes in the armband repo. Default false'