4b2a7b50e4da2125433005d126ac84efdbaec3e6
[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         - 'opnfv-build-arm-defaults'
39         - '{installer}-defaults'
40         - armband-project-parameter:
41             gs-pathname: '{gs-pathname}'
42
43     scm:
44         - git-scm:
45             credentials-id: '{ssh-credentials}'
46             refspec: ''
47             branch: '{branch}'
48
49     triggers:
50         - pollscm:
51             cron: '0 H/4 * * *'
52
53     wrappers:
54         - timeout:
55             timeout: 360
56             fail: true
57
58     builders:
59         - shell:
60             !include-raw-escape: ./build.sh
61         - shell:
62             !include-raw-escape: ./upload-artifacts.sh
63
64     publishers:
65         - email:
66             recipients: armband@enea.com
67
68 ########################
69 # parameter macros
70 ########################
71 - parameter:
72     name: armband-project-parameter
73     parameters:
74         - string:
75             name: BUILD_DIRECTORY
76             default: $WORKSPACE/build_output
77             description: "Directory where the build artifact will be located upon the completion of the build."
78         - string:
79             name: CACHE_DIRECTORY
80             default: $HOME/opnfv/cache/$INSTALLER_TYPE
81             description: "Directory where the cache to be used during the build is located."
82         - string:
83             name: GS_URL
84             default: artifacts.opnfv.org/$PROJECT{gs-pathname}
85             description: "URL to Google Storage."
86         - choice:
87             name: FORCE_BUILD
88             choices:
89                 - 'false'
90                 - 'true'
91             description: 'Force build even if there are no changes in the armband repo. Default false'