8329946ade435de177f3001abdc91117967eb707
[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: '{build-days-to-keep}'
20         numToKeep: '{build-num-to-keep}'
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         - build-timeout
36         - ssh-agent-credentials:
37             users:
38                 - '{ssh-credentials}'
39
40     triggers:
41         - timed: '@daily'
42
43     prebuilders:
44         - wipe-org-opendaylight-repo
45         - jacoco-nojava-workaround
46         - provide-maven-settings:
47             global-settings-file: '{odl-global-settings}'
48             settings-file: '{JENKINS_SETTINGS}'
49
50     maven:
51         maven-name: '{mvn33}'
52         root-pom: 'POM'
53         goals: 'MAVEN_GOALS -Djenkins'
54         maven-opts: 'MAVEN_OPTS'
55         settings: '{JENKINS_SETTINGS}'
56         global-settings: '{odl-global-settings}'
57
58     reporters:
59         - findbugs
60
61     publishers:
62         - email-notification:
63             email-prefix: '[PROJECT_SHORTNAME]'
64         - jacoco-report