aa089e0d5d0be71281cc349f5e8804420be4469e
[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     jobs:
11         - 'armband-verify-{stream}'
12         - 'armband-build-daily-{stream}'
13
14     stream:
15         - master:
16             branch: '{stream}'
17             gs-pathname: ''
18         - brahmaputra:
19             branch: 'stable/{stream}'
20             gs-pathname: '/{stream}'
21
22 - job-template:
23     name: 'armband-verify-{stream}'
24
25     parameters:
26         - project-parameter:
27             project: '{project}'
28         - gerrit-parameter:
29             branch: '{branch}'
30         - 'opnfv-build-ubuntu-defaults'
31
32     scm:
33         - gerrit-trigger-scm:
34             credentials-id: '{ssh-credentials}'
35             refspec: '$GERRIT_REFSPEC'
36             choosing-strategy: 'gerrit'
37
38     triggers:
39         - gerrit:
40             trigger-on:
41                 - patchset-created-event:
42                     exclude-drafts: 'false'
43                     exclude-trivial-rebase: 'false'
44                     exclude-no-code-change: 'false'
45                 - draft-published-event
46                 - comment-added-contains-event:
47                     comment-contains-value: 'recheck'
48                 - comment-added-contains-event:
49                     comment-contains-value: 'reverify'
50             projects:
51               - project-compare-type: 'ANT'
52                 project-pattern: '{project}'
53                 branches:
54                   - branch-compare-type: 'ANT'
55                     branch-pattern: '**/{branch}'
56                 forbidden-file-paths:
57                   - compare-type: ANT
58                     pattern: 'docs/**|.gitignore'
59
60     builders:
61         - shell: |
62             echo "Nothing to verify!"
63
64 - job-template:
65     name: 'armband-build-daily-{stream}'
66
67     concurrent: false
68
69     properties:
70         - throttle:
71             enabled: true
72             max-total: 1
73             max-per-node: 1
74
75     parameters:
76         - project-parameter:
77             project: '{project}'
78         - 'arm-build1-defaults'
79         - armband-project-parameter:
80             gs-pathname: '{gs-pathname}'
81
82     scm:
83         - git-scm:
84             credentials-id: '{ssh-credentials}'
85             refspec: ''
86             branch: '{branch}'
87
88     triggers:
89         - pollscm:
90             cron: '0 H/4 * * *'
91
92     wrappers:
93         - timeout:
94             timeout: 360
95             fail: true
96
97     builders:
98         - shell:
99             !include-raw-escape: ./build.sh
100         - shell:
101             !include-raw-escape: ./upload-artifacts.sh
102
103     publishers:
104         - email:
105             recipients: josep.puigdemont@enea.com armband@enea.com
106
107 ########################
108 # parameter macros
109 ########################
110 - parameter:
111     name: armband-project-parameter
112     parameters:
113         - string:
114             name: BUILD_DIRECTORY
115             default: $WORKSPACE/build_output
116             description: "Directory where the build artifact will be located upon the completion of the build."
117         - string:
118             name: GS_URL
119             default: artifacts.opnfv.org/$PROJECT{gs-pathname}
120             description: "URL to Google Storage."
121         - choice:
122             name: FORCE_BUILD
123             choices:
124                 - 'false'
125                 - 'true'
126             description: 'Force build even if there are no changes in the armband repo. Default false'