Migrate docs-rtd to archive-builds 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             refspec: ''
31             branch: '{branch}'
32
33     wrappers:
34         - opendaylight-infra-wrappers:
35             build-timeout: '{build-timeout}'
36
37     triggers:
38         - timed: '@daily'
39
40     prebuilders:
41         - jacoco-nojava-workaround
42         - provide-maven-settings:
43             global-settings-file: 'odl-global-settings'
44             settings-file: 'JENKINS_SETTINGS'
45
46     maven:
47         maven-name: '{mvn33}'
48         root-pom: 'POM'
49         goals: 'MAVEN_GOALS -V -B -Djenkins'
50         maven-opts: 'MAVEN_OPTS'
51         settings: 'JENKINS_SETTINGS'
52         settings-type: cfp
53         global-settings: 'odl-global-settings'
54         global-settings-type: cfp
55
56     reporters:
57         - findbugs
58
59     publishers:
60         - email-notification:
61             email-prefix: '[PROJECT_SHORTNAME]'
62         - jacoco-report
63         - archive-build:
64             maven-version: '{mvn33}'