Merge "Add job to automatically cleanup old images"
[releng/builder.git] / jjb / integration / distribution / distribution-check.yaml
1 ---
2 - job-template:
3     # Template: distribution-check-{stream}
4     # Goal: Build a patch and make sure it would not break distribution-check jobs for other projects.
5     # Operation: FIXME
6     #            This job template builds a patch, creates a distribution containing
7     #            the patch (making sure dependencies are specified),
8     #            and performs the distribution deploy test.
9
10     name: 'distribution-check-{stream}'
11     disabled: false
12
13     project-type: freestyle
14     node: '{build-node}'
15     concurrent: true
16     jdk: '{jdk}'
17
18     properties:
19       - opendaylight-infra-properties:
20           build-days-to-keep: '{build-days-to-keep}'
21
22     parameters:
23       - opendaylight-infra-parameters:
24           project: '{project}'
25           branch: '{branch}'
26           refspec: 'refs/heads/{branch}'
27           artifacts: '{archive-artifacts} **/dependency_tree.txt **/target/surefire-reports/*-output.txt'
28
29     scm:
30       - integration-gerrit-scm:
31           basedir: 'distribution'
32           refspec: '$GERRIT_REFSPEC'
33           branch: '{branch}'
34
35     wrappers:
36       - opendaylight-infra-wrappers:
37           # Distro-check jobs typically run within 10 - 30 minutes
38           # with 45 minutes being the occassional edge case.
39           # enforce a 60 minute limit to ensure stuck jobs get
40           # cleared up sooner.
41           build-timeout: '60'
42
43     triggers:
44       - gerrit-trigger-patch-submitted:
45           server: '{server-name}'
46           project: '{project}'
47           branch: '{branch}'
48           files: '**'
49
50     builders:
51       - distribution-check-wipe
52       - distribution-check-build-project:
53           pom: 'distribution/pom.xml'
54       - distribution-check-verify-groupid:
55           gerrit-project: 'integration'
56       - distribution-check-delete-snapshots
57       - distribution-check-configure-remotes
58       - distribution-check-repeat-build:
59           dist-pom: 'distribution/pom.xml'
60       - integration-distribution-check
61
62     publishers:
63       - email-notification:
64           email-recipients: '{email-recipients}'
65           email-prefix: '[{project-name}]'
66       - postbuildscript:
67           builders:
68             - shell: |
69                 #!/bin/bash
70                 mkdir -p $WORKSPACE/archives
71                 cp karaf*.log $WORKSPACE/archives
72           script-only-if-succeeded: false
73           script-only-if-failed: false
74           mark-unstable-if-failed: true
75       - archive:
76           artifacts: '*.zip'
77       - opendaylight-infra-shiplogs:
78           maven-version: 'mvn33'