[macro] property logrotate
[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             disabled: false
20         - danube:
21             branch: 'stable/{stream}'
22             gs-pathname: '/{stream}'
23             disabled: true
24
25 - job-template:
26     name: 'armband-{installer}-build-daily-{stream}'
27
28     disabled: '{obj:disabled}'
29
30     concurrent: false
31
32     properties:
33         - logrotate-default
34         - throttle:
35             enabled: true
36             max-total: 1
37             max-per-node: 1
38             option: 'project'
39
40     parameters:
41         - project-parameter:
42             project: '{project}'
43         - gerrit-parameter:
44             branch: '{branch}'
45         - 'opnfv-build-arm-defaults'
46         - '{installer}-defaults'
47         - armband-project-parameter:
48             gs-pathname: '{gs-pathname}'
49
50     scm:
51         - git-scm
52
53     triggers:
54         - pollscm:
55             cron: '0 H/4 * * *'
56
57     wrappers:
58         - timeout:
59             timeout: 360
60             fail: true
61
62     builders:
63         - shell:
64             !include-raw-escape: ./build.sh
65         - shell:
66             !include-raw-escape: ./upload-artifacts.sh
67
68     publishers:
69         - email:
70             recipients: armband@enea.com
71
72 ########################
73 # parameter macros
74 ########################
75 - parameter:
76     name: armband-project-parameter
77     parameters:
78         - string:
79             name: BUILD_DIRECTORY
80             default: $WORKSPACE/build_output
81             description: "Directory where the build artifact will be located upon the completion of the build."
82         - string:
83             name: CACHE_DIRECTORY
84             default: $HOME/opnfv/cache/$INSTALLER_TYPE
85             description: "Directory where the cache to be used during the build is located."
86         - string:
87             name: GS_URL
88             default: artifacts.opnfv.org/$PROJECT{gs-pathname}
89             description: "URL to Google Storage."
90         - choice:
91             name: FORCE_BUILD
92             choices:
93                 - 'false'
94                 - 'true'
95             description: 'Force build even if there are no changes in the armband repo. Default false'