Adjusts for new log server
[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: 'H H * * 6'
33
34     prebuilders:
35         - provide-maven-settings:
36             global-settings-file: 'odl-global-settings'
37             settings-file: 'JENKINS_SETTINGS'
38
39     maven:
40         maven-name: '{mvn33}'
41         root-pom: 'pom.xml'
42         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'
43         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
44         settings: 'JENKINS_SETTINGS'
45         settings-type: cfp
46         global-settings: 'odl-global-settings'
47         global-settings-type: cfp
48
49     postbuilders:
50         - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
51         - check-clm:
52             application-name: PROJECT_SHORTNAME
53
54     publishers:
55         - email-notification:
56             email-prefix: '[PROJECT_SHORTNAME]'
57         - archive-build:
58             maven-version: '{mvn33}'