3 name: distribution-templates
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.
12 project-type: freestyle
18 - opendaylight-infra-properties:
19 build-days-to-keep: '{build-days-to-keep}'
22 - opendaylight-infra-parameters:
23 os-cloud: '{os-cloud}'
26 refspec: 'refs/heads/{branch}'
27 artifacts: '{archive-artifacts} **/dependency_tree.txt **/target/surefire-reports/*-output.txt'
28 - integration-distribution-git-url:
30 - distribution-karaf-version:
31 karaf-version: '{karaf-version}'
36 - integration-gerrit-scm:
37 basedir: '$GERRIT_PROJECT'
38 refspec: '$GERRIT_REFSPEC'
40 - integration-distribution-scm:
41 branch: '{distribution_branch}'
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
49 # Double that as Karaf 3+4 may take longer.
53 - gerrit-trigger-patch-submitted:
54 server: '{server-name}'
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
80 email-recipients: '{email-recipients}'
81 email-prefix: '[{project-name}]'
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'
94 # Delete these when Karaf 4 becomes Nitrogen default.
96 # TODO: Is there a way to de-duplicate with generic template parts?
99 name: '{project-name}-distribution3-check-nitrogen'
102 project-type: freestyle
108 - opendaylight-infra-properties:
109 build-days-to-keep: '{build-days-to-keep}'
112 - opendaylight-infra-parameters:
113 os-cloud: '{os-cloud}'
116 refspec: 'refs/heads/master'
117 artifacts: '{archive-artifacts} **/dependency_tree.txt **/target/surefire-reports/*-output.txt'
118 - integration-distribution-git-url:
120 - distribution-karaf-version:
121 karaf-version: karaf3
126 - integration-gerrit-scm:
127 basedir: '$GERRIT_PROJECT'
128 refspec: '$GERRIT_REFSPEC'
129 branch: '$GERRIT_BRANCH'
130 - integration-distribution-scm:
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
139 # Double that as Karaf 3+4 may take longer.
143 - gerrit-trigger-patch-submitted:
144 server: '{server-name}'
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
169 - email-notification:
170 email-recipients: '{email-recipients}'
171 email-prefix: '[{project-name}]'
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'