Migrate docs-rtd to archive-builds macro
[releng/builder.git] / jjb-templates / clm.yaml
1 - job-template:
2     name: 'PROJECT_SHORTNAME-clm-{stream}'
3     disabled: false
4
5     project-type: maven
6     node: dynamic_verify
7     jdk: '{jdk}'
8
9     logrotate:
10         daysToKeep: '{build-days-to-keep}'
11         numToKeep: '{build-num-to-keep}'
12         artifactDaysToKeep: '{build-artifact-days-to-keep}'
13         artifactNumToKeep: '{build-artifact-num-to-keep}'
14
15     parameters:
16         - project-parameter:
17             project: '{project}'
18
19     scm:
20         - git-scm:
21             refspec: ''
22             branch: '{branch}'
23
24     wrappers:
25         - opendaylight-infra-wrappers:
26             build-timeout: '{build-timeout}'
27
28     triggers:
29         - timed: 'H H * * 6'
30
31     prebuilders:
32         - provide-maven-settings:
33             global-settings-file: 'odl-global-settings'
34             settings-file: 'JENKINS_SETTINGS'
35
36     maven:
37         maven-name: '{mvn33}'
38         root-pom: 'pom.xml'
39         goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
40         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
41         settings: 'JENKINS_SETTINGS'
42         settings-type: cfp
43         global-settings: 'odl-global-settings'
44         global-settings-type: cfp
45
46     postbuilders:
47         - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
48         - check-clm:
49             application-name: PROJECT_SHORTNAME
50
51     publishers:
52         - email-notification:
53             email-prefix: '[PROJECT_SHORTNAME]'
54         - archive-build:
55             maven-version: '{mvn33}'