Merge "Update JJB version 2.0.5"
[releng/builder.git] / jjb / integration / distribution / distribution-templates.yaml
1 ---
2 - project:
3     name: distribution-templates
4
5 - job-template:
6     name: '{project-name}-distribution-check-{stream}'
7
8     ######################
9     # Default parameters #
10     ######################
11
12     java-version: openjdk8
13     mvn-version: mvn35
14
15     #####################
16     # Job Configuration #
17     #####################
18
19     # Operation: This job template builds a patch, creates a distribution containing
20     #            the patch (making sure dependencies are specified),
21     #            and performs the distribution deploy test.
22     disabled: false
23
24     project-type: freestyle
25     node: 'centos7-builder-8c-8g'
26     concurrent: true
27     jdk: '{java-version}'
28
29     properties:
30       - opendaylight-infra-properties:
31           build-days-to-keep: '{build-days-to-keep}'
32
33     parameters:
34       - opendaylight-infra-parameters:
35           os-cloud: '{os-cloud}'
36           project: '{project}'
37           branch: '{branch}'
38           refspec: 'refs/heads/{branch}'
39           artifacts: '{archive-artifacts}'
40       - integration-distribution-stream:
41           stream: '{stream}'
42       - integration-distribution-git-url:
43           git-url: '{git-url}'
44       - distribution-karaf-version:
45           karaf-version: '{karaf-version}'
46       - maven-exec:
47           maven-version: '{mvn-version}'
48
49     scm:
50       - integration-gerrit-scm:
51           basedir: '$GERRIT_PROJECT'
52           refspec: '$GERRIT_REFSPEC'
53           branch: '{branch}'
54       - integration-distribution-scm:
55           branch: '{distribution_branch}'
56
57     wrappers:
58       - opendaylight-infra-wrappers:
59           # Distro-check jobs typically run within 10 - 30 minutes
60           # with 45 minutes being the occassional edge case.
61           # enforce a 60 minute limit to ensure stuck jobs get
62           # cleared up sooner.
63           # Double that as Karaf 3+4 may take longer.
64           build-timeout: '120'
65
66     triggers:
67       - gerrit-trigger-patch-submitted:
68           gerrit-server-name: '{gerrit-server-name}'
69           project: '{project}'
70           branch: '{branch}'
71           files: '**'
72
73     builders:
74       - distribution-check-wipe
75       - distribution-check-build-project:
76           pom: '$GERRIT_PROJECT/pom.xml'
77           mvn-opts: '{opendaylight-infra-mvn-opts}'
78           mvn-version: '{mvn-version}'
79           # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
80       - distribution-check-verify-groupid:
81           gerrit-project: '$GERRIT_PROJECT'
82       - distribution-check-download-deps:
83           dist-pom: 'distribution/pom.xml'
84           mvn-opts: '{opendaylight-infra-mvn-opts}'
85           mvn-version: '{mvn-version}'
86           # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
87       - distribution-check-delete-snapshots
88       - distribution-check-configure-remotes
89       - distribution-check-repeat-project-build:
90           pom: '$GERRIT_PROJECT/pom.xml'
91           mvn-opts: '{opendaylight-infra-mvn-opts}'
92           mvn-version: '{mvn-version}'
93           # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
94       - distribution-check-repeat-distro-build:
95           dist-pom: 'distribution/pom.xml'
96           mvn-opts: '{opendaylight-infra-mvn-opts}'
97           mvn-version: '{mvn-version}'
98           # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
99       - integration-set-variables
100       - distribution-check-warn-9191
101       - distribution-check-warn-9192
102       - integration-upload-distribution:
103           dist-pom: distribution/pom.xml
104       - distribution-check-bootup
105
106     publishers:
107       - email-notification:
108           email-recipients: '{email-recipients}'
109           email-prefix: '[{project-name}]'
110       - integration-csit-archive-build
111       - lf-infra-publish