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}'
16 daysToKeep: '{build-days-to-keep}'
17 numToKeep: '{build-num-to-keep}'
18 artifactDaysToKeep: '{build-artifact-days-to-keep}'
19 artifactNumToKeep: '{build-artifact-num-to-keep}'
25 refspec: 'refs/heads/{branch}'
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:
50 server-name: 'OpenDaylight'
52 - patchset-created-event:
53 exclude-drafts: 'true'
54 exclude-trivial-rebase: 'false'
55 exclude-no-code-change: 'true'
56 - draft-published-event
57 - comment-added-contains-event:
58 comment-contains-value: 'test-distribution'
59 - comment-added-contains-event:
60 comment-contains-value: 'reverify'
61 - comment-added-contains-event:
62 comment-contains-value: 'recheck'
64 - project-compare-type: 'ANT'
65 project-pattern: '{name}'
67 - branch-compare-type: 'ANT'
68 branch-pattern: '**/{branch}'
77 maven-version: '{mvn33}'
78 pom: '$GERRIT_PROJECT/pom.xml'
79 goals: 'clean install -V -B -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}'
81 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
82 settings: 'JENKINS_SETTINGS'
84 global-settings: 'odl-global-settings'
85 global-settings-type: cfp
89 root-pom: 'distribution/pom.xml'
90 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
91 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
92 settings: 'JENKINS_SETTINGS'
94 global-settings: 'odl-global-settings'
95 global-settings-type: cfp
96 ignore-upstream-changes: true
97 post-step-run-condition: 'SUCCESS'
100 - integration-distribution-check
103 - email-notification:
104 email-prefix: '[PROJECT_SHORTNAME]'
109 mkdir -p $WORKSPACE/archives
110 cp karaf*.log $WORKSPACE/archives
111 script-only-if-succeeded: False
112 script-only-if-failed: False
113 mark-unstable-if-failed: True
115 maven-version: '{mvn33}'