Create a opendaylight-infra-wrapper 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             credentials-id: '{ssh-credentials}'
22             refspec: ''
23             branch: '{branch}'
24
25     wrappers:
26         - opendaylight-infra-wrappers:
27             build-timeout: '{build-timeout}'
28
29     triggers:
30         - timed: 'H H * * 6'
31
32     prebuilders:
33         - provide-maven-settings:
34             global-settings-file: 'odl-global-settings'
35             settings-file: 'JENKINS_SETTINGS'
36
37     maven:
38         maven-name: '{mvn33}'
39         root-pom: 'pom.xml'
40         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'
41         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
42         settings: 'JENKINS_SETTINGS'
43         settings-type: cfp
44         global-settings: 'odl-global-settings'
45         global-settings-type: cfp
46
47     postbuilders:
48         - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
49         - check-clm:
50             application-name: PROJECT_SHORTNAME
51
52     publishers:
53         - email-notification:
54             email-prefix: '[PROJECT_SHORTNAME]'
55         - archive-build:
56             maven-version: '{mvn33}'