Convert templates to be single-use minions
[releng/builder.git] / jjb-templates / integration.yaml
1 - job-template:
2     name: 'PROJECT_SHORTNAME-integration-{stream}'
3     disabled: DISABLED
4
5     # Job template for ODL integration verify jobs
6     #
7     # This is similar to a normal verify job, but it runs
8     # when a project that's a dependency of your project
9     # is successfully built.
10     #
11     # Required Variables:
12     #     stream:    release stream (eg. stable-lithium or beryllium)
13     #     branch:    git branch (eg. stable/lithium or master)
14
15     project-type: maven
16     node: dynamic_merge
17     jdk: '{jdk}'
18
19     logrotate:
20         daysToKeep: '{build-days-to-keep}'
21         numToKeep: '{build-num-to-keep}'
22         artifactDaysToKeep: '{build-artifact-days-to-keep}'
23         artifactNumToKeep: '{build-artifact-num-to-keep}'
24
25     parameters:
26         - project-parameter:
27             project: '{project}'
28
29     scm:
30         - git-scm:
31             credentials-id: '{ssh-credentials}'
32             refspec: ''
33             branch: '{branch}'
34
35     wrappers:
36         - build-timeout
37         - ssh-agent-credentials:
38             users:
39                 - '{ssh-credentials}'
40         - openstack:
41             single-use: true
42
43     triggers:
44         - reverse:
45             jobs: 'DEPENDENCIES'
46             result: 'success'
47
48     prebuilders:
49         - jacoco-nojava-workaround
50         - provide-maven-settings:
51             global-settings-file: 'odl-global-settings'
52             settings-file: 'JENKINS_SETTINGS'
53
54     maven:
55         maven-name: '{mvn33}'
56         root-pom: 'POM'
57         goals: 'MAVEN_GOALS -V -B -Djenkins'
58         maven-opts: 'MAVEN_OPTS'
59         settings: 'JENKINS_SETTINGS'
60         settings-type: cfp
61         global-settings: 'odl-global-settings'
62         global-settings-type: cfp
63
64     reporters:
65         - findbugs
66
67     publishers:
68         - email-notification:
69             email-prefix: 'EMAIL_PREFIX'
70         - jacoco-report
71         - archive-build:
72             maven-version: '{mvn33}'