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