Create a opendaylight-infra-wrapper macro
[releng/builder.git] / jjb-templates / periodic.yaml
1 - job-template:
2     name: 'PROJECT_SHORTNAME-periodic-{stream}'
3     disabled: false
4
5     # Job template for periodic builders
6     #
7     # The purpose of this job template is to setup a periodic
8     # builder.
9     #
10     # Required Variables:
11     #     stream:    release stream (eg. stable-lithium or beryllium)
12     #     branch:    git branch (eg. stable/lithium or master)
13
14     project-type: maven
15     node: dynamic_verify
16     jdk: '{jdk}'
17
18     logrotate:
19         daysToKeep: '14'
20         numToKeep: '10'
21         artifactDaysToKeep: '{build-artifact-days-to-keep}'
22         artifactNumToKeep: '{build-artifact-num-to-keep}'
23
24     parameters:
25         - project-parameter:
26             project: '{project}'
27
28     scm:
29         - git-scm:
30             credentials-id: '{ssh-credentials}'
31             refspec: ''
32             branch: '{branch}'
33
34     wrappers:
35         - opendaylight-infra-wrappers:
36             build-timeout: '{build-timeout}'
37
38     triggers:
39         - timed: '@daily'
40
41     prebuilders:
42         - jacoco-nojava-workaround
43         - provide-maven-settings:
44             global-settings-file: 'odl-global-settings'
45             settings-file: 'JENKINS_SETTINGS'
46
47     maven:
48         maven-name: '{mvn33}'
49         root-pom: 'POM'
50         goals: 'MAVEN_GOALS -V -B -Djenkins'
51         maven-opts: 'MAVEN_OPTS'
52         settings: 'JENKINS_SETTINGS'
53         settings-type: cfp
54         global-settings: 'odl-global-settings'
55         global-settings-type: cfp
56
57     reporters:
58         - findbugs
59
60     publishers:
61         - email-notification:
62             email-prefix: '[PROJECT_SHORTNAME]'
63         - jacoco-report
64         - archive-build:
65             maven-version: '{mvn33}'