Update automated project templates
[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             credentials-id: '{ssh-credentials}'
22             refspec: ''
23             branch: '{branch}'
24
25     wrappers:
26         - build-timeout
27         - ssh-agent-credentials:
28             users:
29                 - '{ssh-credentials}'
30
31     triggers:
32         - timed: '@weekly'
33
34     prebuilders:
35         - wipe-org-opendaylight-repo
36         - provide-maven-settings:
37             global-settings-file: '{odl-global-settings}'
38             settings-file: '{JENKINS_SETTINGS}'
39
40     maven:
41         maven-name: '{mvn33}'
42         root-pom: 'pom.xml'
43         goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
44         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
45         settings: '{JENKINS_SETTINGS}'
46         global-settings: '{odl-global-settings}'
47
48     postbuilders:
49         - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
50         - check-clm:
51             application-name: PROJECT_SHORTNAME
52
53     publishers:
54         - email-notification:
55             email-prefix: '[PROJECT_SHORTNAME]'