Adjust for karaf 4 not happening in carbon
[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     # Operation: This job template builds a patch, creates a distribution containing
8     #            the patch (making sure dependencies are specified),
9     #            and performs the distribution deploy test.
10     disabled: false
11
12     project-type: freestyle
13     node: '{build-node}'
14     concurrent: true
15     jdk: '{jdk}'
16
17     properties:
18       - opendaylight-infra-properties:
19           build-days-to-keep: '{build-days-to-keep}'
20
21     parameters:
22       - opendaylight-infra-parameters:
23           os-cloud: '{os-cloud}'
24           project: '{project}'
25           branch: '{branch}'
26           refspec: 'refs/heads/{branch}'
27           artifacts: '{archive-artifacts} **/dependency_tree.txt **/target/surefire-reports/*-output.txt'
28       - integration-distribution-git-url:
29           git-url: '{git-url}'
30       - distribution-karaf-version:
31           karaf-version: '{karaf-version}'
32       - maven-exec:
33           maven-version: mvn33
34
35     scm:
36       - integration-gerrit-scm:
37           basedir: '$GERRIT_PROJECT'
38           refspec: '$GERRIT_REFSPEC'
39           branch: '{branch}'
40       - integration-distribution-scm:
41           branch: '{distribution_branch}'
42
43     wrappers:
44       - opendaylight-infra-wrappers:
45           # Distro-check jobs typically run within 10 - 30 minutes
46           # with 45 minutes being the occassional edge case.
47           # enforce a 60 minute limit to ensure stuck jobs get
48           # cleared up sooner.
49           # Double that as Karaf 3+4 may take longer.
50           build-timeout: '120'
51
52     triggers:
53       - gerrit-trigger-patch-submitted:
54           server: '{server-name}'
55           project: '{project}'
56           branch: '{branch}'
57           files: '**'
58
59     builders:
60       - distribution-check-wipe
61       - distribution-check-build-project:
62           pom: '$GERRIT_PROJECT/pom.xml'
63           mvn-opts: '{opendaylight-infra-mvn-opts}'
64       - distribution-check-verify-groupid:
65           gerrit-project: '$GERRIT_PROJECT'
66       - distribution-check-download-deps:
67           dist-pom: 'distribution/pom.xml'
68           mvn-opts: '{opendaylight-infra-mvn-opts}'
69       - distribution-check-delete-snapshots
70       - distribution-check-configure-remotes
71       - distribution-check-repeat-build:
72           dist-pom: 'distribution/pom.xml'
73           mvn-opts: '{opendaylight-infra-mvn-opts}'
74       - integration-upload-distribution:
75           dist-pom: distribution/pom.xml
76       - integration-distribution-check
77
78     publishers:
79       - email-notification:
80           email-recipients: '{email-recipients}'
81           email-prefix: '[{project-name}]'
82       - postbuildscript:
83           builders:
84             - shell: |
85                 #!/bin/bash
86                 mkdir -p $WORKSPACE/archives
87                 cp karaf*.log $WORKSPACE/archives
88           script-only-if-succeeded: false
89           script-only-if-failed: false
90           mark-unstable-if-failed: true
91       - opendaylight-infra-shiplogs:
92           maven-version: 'mvn33'
93
94 # Delete these when Karaf 4 becomes Nitrogen default.
95
96 # TODO: Is there a way to de-duplicate with generic template parts?
97
98 - job-template:
99     name: '{project-name}-distribution3-check-nitrogen'
100     disabled: false
101
102     project-type: freestyle
103     node: '{build-node}'
104     concurrent: true
105     jdk: '{jdk}'
106
107     properties:
108       - opendaylight-infra-properties:
109           build-days-to-keep: '{build-days-to-keep}'
110
111     parameters:
112       - opendaylight-infra-parameters:
113           os-cloud: '{os-cloud}'
114           project: '{project}'
115           branch: 'master'
116           refspec: 'refs/heads/master'
117           artifacts: '{archive-artifacts} **/dependency_tree.txt **/target/surefire-reports/*-output.txt'
118       - integration-distribution-git-url:
119           git-url: '{git-url}'
120       - distribution-karaf-version:
121           karaf-version: karaf3
122       - maven-exec:
123           maven-version: mvn33
124
125     scm:
126       - integration-gerrit-scm:
127           basedir: '$GERRIT_PROJECT'
128           refspec: '$GERRIT_REFSPEC'
129           branch: '$GERRIT_BRANCH'
130       - integration-distribution-scm:
131           branch: 'master'
132
133     wrappers:
134       - opendaylight-infra-wrappers:
135           # Distro-check jobs typically run within 10 - 30 minutes
136           # with 45 minutes being the occassional edge case.
137           # enforce a 60 minute limit to ensure stuck jobs get
138           # cleared up sooner.
139           # Double that as Karaf 3+4 may take longer.
140           build-timeout: '120'
141
142     triggers:
143       - gerrit-trigger-patch-submitted:
144           server: '{server-name}'
145           project: '{project}'
146           branch: 'master'
147           files: '**'
148
149     builders:
150       - distribution-check-wipe
151       - distribution-check-build-project:
152           pom: '$GERRIT_PROJECT/pom.xml'
153           mvn-opts: '{opendaylight-infra-mvn-opts}'
154       - distribution-check-verify-groupid:
155           gerrit-project: '$GERRIT_PROJECT'
156       - distribution-check-download-deps:
157           dist-pom: 'distribution/pom.xml'
158           mvn-opts: '{opendaylight-infra-mvn-opts}'
159       - distribution-check-delete-snapshots
160       - distribution-check-configure-remotes
161       - distribution-check-repeat-build:
162           dist-pom: 'distribution/pom.xml'
163           mvn-opts: '{opendaylight-infra-mvn-opts}'
164       - integration-upload-distribution:
165           dist-pom: distribution/pom.xml
166       - integration-distribution-check
167
168     publishers:
169       - email-notification:
170           email-recipients: '{email-recipients}'
171           email-prefix: '[{project-name}]'
172       - postbuildscript:
173           builders:
174             - shell: |
175                 #!/bin/bash
176                 mkdir -p $WORKSPACE/archives
177                 cp karaf*.log $WORKSPACE/archives
178           script-only-if-succeeded: false
179           script-only-if-failed: false
180           mark-unstable-if-failed: true
181       - opendaylight-infra-shiplogs:
182           maven-version: 'mvn33'