1 # Template: integration-patch-distribution-{stream}
2 # Goal: Build a patch and make sure the distribution can deploy with this change
3 # Operation: This job template builds a patch, creates a distribution containing
4 # the patch, and triggers the distribution deploy test
7 name: 'PROJECT_SHORTNAME-distribution-check-{stream}'
8 disabled: '{obj:disable_distribution_check}'
18 artifactDaysToKeep: '{build-artifact-days-to-keep}'
19 artifactNumToKeep: '{build-artifact-num-to-keep}'
22 - gerrit-project-parameter:
24 - gerrit-refspec-parameter:
28 - integration-distribution-git-url
31 - integration-gerrit-scm:
32 credentials-id: '{ssh-credentials}'
33 basedir: '$GERRIT_PROJECT'
34 refspec: '$GERRIT_REFSPEC'
36 - integration-distribution-scm:
37 credentials-id: '{ssh-credentials}'
42 - ssh-agent-credentials:
48 server-name: 'OpenDaylight'
50 - patchset-created-event:
51 exclude-drafts: 'true'
52 exclude-trivial-rebase: 'false'
53 exclude-no-code-change: 'true'
54 - draft-published-event
55 - comment-added-contains-event:
56 comment-contains-value: 'test-distribution'
58 - project-compare-type: 'ANT'
59 project-pattern: '{name}'
61 - branch-compare-type: 'ANT'
62 branch-pattern: '**/{branch}'
70 - integration-get-bundle-url
72 properties-file: 'bundle.txt'
73 - wipe-org-opendaylight-repo
75 maven-version: '{mvn33}'
76 pom: '$GERRIT_PROJECT/pom.xml'
77 goals: 'clean install -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
79 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
80 settings: '{JENKINS_SETTINGS}'
81 global-settings: '{odl-global-settings}'
85 root-pom: 'distribution/pom.xml'
86 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
87 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
88 settings: '{JENKINS_SETTINGS}'
89 global-settings: '{odl-global-settings}'
90 ignore-upstream-changes: true
91 post-step-run-condition: 'SUCCESS'
95 - project: 'integration-distribution-deploy-{stream}'
97 predefined-parameters:
101 - email-notification:
102 email-prefix: '[PROJECT_SHORTNAME]'