Enable projects to select templates to use
[releng/builder.git] / jjb-templates / verify.yaml
1 - job-template:
2     name: 'PROJECT-verify-{stream}'
3
4     # Job template for ODL verify jobs
5     #
6     # The purpose of this job template is to setup a ODL verify job
7     #
8     # Required Variables:
9     #     stream:    branch with - in place of / (eg. stable-helium)
10     #     branch:    branch (eg. stable/helium)
11
12     project-type: maven
13     node: dynamic_verify
14     concurrent: true
15     jdk: '{jdk}'
16
17     logrotate:
18         daysToKeep: '{build-days-to-keep}'
19         numToKeep: '{build-num-to-keep}'
20         artifactDaysToKeep: '{build-artifact-days-to-keep}'
21         artifactNumToKeep: '{build-artifact-num-to-keep}'
22
23     parameters:
24         - project-parameter:
25             project: '{project}'
26         - gerrit-parameter:
27             branch: '{branch}'
28
29     scm:
30         - gerrit-trigger-scm:
31             credentials-id: '{ssh-credentials}'
32             refspec: '$GERRIT_REFSPEC'
33             choosing-strategy: 'gerrit'
34
35     wrappers:
36         - build-timeout
37         - ssh-agent-credentials:
38             user: '{ssh-credentials}'
39
40     triggers:
41         - gerrit-trigger-patch-submitted:
42             name: 'PROJECT'
43             branch: '{branch}'
44
45     prebuilders:
46         - wipe-org-opendaylight-repo
47
48     maven:
49         maven-name: '{mvn32}'
50         root-pom: 'pom.xml'
51         goals: 'MAVEN_GOALS'
52         maven-opts: 'MAVEN_OPTS'
53         settings: '{PROJECT-settings}'
54         global-settings: '{odl-global-settings}'
55         ignore-upstream-changes: true
56
57     postbuilders:
58         - jacoco-nojava-workaround
59
60     publishers:
61         - email-notification:
62             email-prefix: '[PROJECT]'
63         - jacoco-report