Add .npmrc
[releng/builder.git] / jjb / releng-macros.yaml
1 # OLD Releng macros
2 ---
3 - property:
4     name: opendaylight-infra-properties
5     properties:
6       - build-discarder:
7           days-to-keep: '{build-days-to-keep}'
8           num-to-keep: 40
9           # Need to keep artifacts for at least 1 day as some projects need to
10           # be able to validate their artifacts and only allowing limited
11           # number of artifacts could make fast moving jobs lost their
12           # artifacts before the developers can test it.
13           artifact-days-to-keep: 1
14
15 - parameter:
16     name: opendaylight-infra-parameters
17     parameters:
18       - string:
19           name: PROJECT
20           default: '{project}'
21           description: 'Parameter to identify an ODL Gerrit project'
22       - string:
23           name: ARCHIVE_ARTIFACTS
24           default: >
25               {artifacts}
26               **/target/surefire-reports/*-output.txt
27               **/hs_err_*.log
28               **/target/feature/feature.xml
29               **/*.hprof
30           description: 'Space separated glob patterns for artifacts to archive into logs.opendaylight.org'
31       - string:
32           name: GERRIT_PROJECT
33           default: '{project}'
34           description: "GERRIT_PROJECT parameter if not given by trigger"
35       - string:
36           name: GERRIT_BRANCH
37           default: '{branch}'
38           description: "JJB configured GERRIT_BRANCH parameter"
39       - string:
40           name: GERRIT_REFSPEC
41           default: '{refspec}'
42           description: "GERRIT_REFSPEC parameter if not given by trigger"
43       - string:
44           name: STACK_NAME
45           default: '$SILO-$JOB_NAME-$BUILD_NUMBER'
46           description: "Used by Heat to generate a unique stack & vm name"
47       - string:
48           name: OS_CLOUD
49           default: '{os-cloud}'
50           description: |
51               The name of a cloud configuration in clouds.yaml. OS_CLOUD is a
52               variable name that is significant to openstack client as a
53               environment variable. Please refer to the documentation for
54               further details.
55               https://docs.openstack.org/developer/python-openstackclient/
56
57 - parameter:
58     name: build-tag
59     parameters:
60       - string:
61           name: BUILD_TAG
62           default: ''
63           description: 'Tag in Git to checkout'
64
65 - parameter:
66     name: controller-version-parameter
67     parameters:
68       - string:
69           name: ODL_VERSION
70           default: '{odl_version}'
71           description: 'Controller version (for use with openstacks networking_odl project)'
72
73 - parameter:
74     name: patches-to-build-parameter
75     parameters:
76       - string:
77           name: PATCHES_TO_BUILD
78           default: ''
79           description: 'csv list of patches in project:changeset format to build distribution with'
80
81 - parameter:
82     name: run-test-parameter
83     parameters:
84       - string:
85           name: RUNTEST
86           default: '{run-test}'
87           description: 'Set true to run test after build'
88
89 - parameter:
90     name: distribution-branch-to-build-parameter
91     parameters:
92       - string:
93           name: DISTRIBUTION_BRANCH_TO_BUILD
94           default: 'master'
95           description: 'distribution repo branch to build with'
96
97 - parameter:
98     name: p2zip-parameter
99     parameters:
100       - string:
101           name: P2ZIP_URL
102           default: ''
103           description: 'Nexus staging profile id'
104
105 - parameter:
106     name: stage-id-parameter
107     parameters:
108       - string:
109           name: STAGING_PROFILE_ID
110           default: '{stage-id}'
111           description: 'Nexus staging profile id'
112
113 - parameter:
114     name: maven-exec
115     parameters:
116       - string:
117           name: MVN
118           default: '/w/tools/hudson.tasks.Maven_MavenInstallation/{maven-version}/bin/mvn'
119           description: 'Maven selector to be used by shell scripts'
120
121 - scm:
122     name: git-scm
123     scm:
124       - git:
125           credentials-id: 'opendaylight-jenkins-ssh'
126           url: '$GIT_BASE'
127           refspec: ''
128           branches:
129             - 'origin/{branch}'
130           skip-tag: true
131           wipe-workspace: true
132
133 - scm:
134     name: git-scm-with-submodules
135     scm:
136       - git:
137           credentials-id: 'opendaylight-jenkins-ssh'
138           url: '$GIT_BASE'
139           refspec: ''
140           branches:
141             - 'refs/heads/{branch}'
142           skip-tag: true
143           wipe-workspace: true
144           submodule:
145             recursive: true
146
147 - scm:
148     name: gerrit-trigger-scm
149     scm:
150       - git:
151           credentials-id: 'opendaylight-jenkins-ssh'
152           url: '$GIT_BASE'
153           refspec: '{refspec}'
154           branches:
155             - 'origin/$GERRIT_BRANCH'
156           skip-tag: true
157           choosing-strategy: '{choosing-strategy}'
158
159 - wrapper:
160     name: build-timeout
161     wrappers:
162       - timeout:
163           type: absolute
164           timeout: 360
165           fail: true
166
167 # This is a single macro to use for all jobs who vote on every (relevant) patch set.
168 # Only 'recheck' trigger word is supported, it always triggers the full set of relevant jobs,
169 # in order to prevent Jenkins from starting only a subset and still voting Verified+1.
170 # Arguments:
171 #     server: name of gerrit server to listen to
172 #     project: pattern to match triggering projects
173 #     branch: triggering branch name
174 #     files: pattern to match triggering filepaths
175 - trigger:
176     name: gerrit-trigger-patch-submitted
177     triggers:
178       - gerrit:
179           server-name: '{server}'
180           trigger-on:
181             - patchset-created-event:
182                 exclude-drafts: true
183                 exclude-trivial-rebase: false
184                 exclude-no-code-change: false
185             - draft-published-event
186             - comment-added-contains-event:
187                 comment-contains-value: recheck
188           projects:
189             - project-compare-type: ANT
190               project-pattern: '{project}'
191               branches:
192                 - branch-compare-type: ANT
193                   branch-pattern: '**/{branch}'
194               file-paths:
195                 - compare-type: ANT
196                   pattern: '{files}'
197
198 # TODO: Unify argument names across gerrit-trigger-* macros.
199 - trigger:
200     name: gerrit-trigger-patch-merged
201     triggers:
202       - gerrit:
203           server-name: '{server-name}'
204           trigger-on:
205             - change-merged-event
206             - comment-added-contains-event:
207                 comment-contains-value: 'remerge'
208           projects:
209             - project-compare-type: 'ANT'
210               project-pattern: '{name}'
211               branches:
212                 - branch-compare-type: 'ANT'
213                   branch-pattern: '**/{branch}'
214           skip-vote:
215             successful: true
216             failed: true
217             unstable: true
218             notbuilt: true
219           # Force Jenkins always vote the values it should already have voted
220           # during the prior verify phase
221           override-votes: true
222           gerrit-build-started-verified-value: 1
223           gerrit-build-successful-verified-value: 1
224           gerrit-build-failed-verified-value: 1
225           gerrit-build-unstable-verified-value: 1
226           gerrit-build-notbuilt-verified-value: 1
227           gerrit-build-started-codereview-value: 0
228           gerrit-build-successful-codereview-value: 0
229           gerrit-build-failed-codereview-value: 0
230           gerrit-build-unstable-codereview-value: 0
231           gerrit-build-notbuilt-codereview-value: 0
232
233 # TODO: Unify argument names across gerrit-trigger-* macros.
234 - trigger:
235     name: gerrit-trigger-patch-sonar
236     triggers:
237       - gerrit:
238           server-name: '{server-name}'
239           trigger-on:
240             - comment-added-contains-event:
241                 comment-contains-value: 'run-sonar'
242           projects:
243             - project-compare-type: 'ANT'
244               project-pattern: '{name}'
245               branches:
246                 - branch-compare-type: 'ANT'
247                   branch-pattern: '**/master'
248           skip-vote:
249             successful: true
250             failed: true
251             unstable: true
252             notbuilt: true
253
254 - publisher:
255     name: archive-artifacts
256     publishers:
257       - archive:
258           artifacts: '{artifacts}'
259           allow-empty: true
260           fingerprint: true
261           latest-only: true
262
263 - publisher:
264     name: email-notification
265     publishers:
266       - email-ext:
267           recipients: '{email-recipients}'
268           reply-to: ''
269           content-type: default
270           subject: '{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
271           body: |
272               $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
273
274               Please refer to the logs server URL for console logs when possible
275               and use the Jenkins Build URL as a last resort.
276
277               Console Logs URL:
278               https://logs.opendaylight.org/$SILO/$JENKINS_HOSTNAME/$JOB_NAME/$BUILD_NUMBER
279
280               Jenkins Build URL:
281               $BUILD_URL
282           unstable: true
283           fixed: true
284           send-to:
285             - recipients
286
287 - publisher:
288     name: jacoco-report
289     publishers:
290       - jacoco:
291           exec-pattern: "**/**.exec"
292           class-pattern: "**/classes"
293           source-pattern: "**/src/main/java"
294           exclusion-pattern: "**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**"
295           status-update: true
296           targets:
297             - branch:
298                 healthy: 10
299                 unhealthy: 20
300             - method:
301                 healthy: 50
302                 unhealthy: 40
303
304 - publisher:
305     name: opendaylight-infra-shiplogs
306     # To archive things the job will need to create a "archives" directory in
307     # the workspace and this macro will handle copying the contents of the
308     # archives directory.
309     #
310     # Uses the build parameter ARCHIVE_ARTIFACTS if not empty to find files
311     # to archive. You can pass globstar patterns for example "**/*.xml **/*.log"
312     # as the archive pattern. This is a space separated list of files to archive.
313     #
314     # Also ensure that the workspace is cleaned up at the end of the build.
315     publishers:
316       - postbuildscript:
317           builders:
318             - shell: !include-raw: include-raw-stack-delete.sh
319             - shell: !include-raw-escape: include-raw-deploy-archives.sh
320             - maven-target:
321                 maven-version: '{maven-version}'
322                 pom: '.archives/deploy-archives.xml'
323                 goals: 'clean deploy -V -B -q -Dmaven.repo.local=/tmp/r'
324                 settings: 'jenkins-log-archives-settings'
325                 settings-type: cfp
326                 global-settings: 'odl-global-settings'
327                 global-settings-type: cfp
328             - description-setter:
329                 regexp: '^Build logs: .*'
330             # Cleanup after ourselves
331             - wipe-org-opendaylight-repo
332           script-only-if-succeeded: false
333           script-only-if-failed: false
334           mark-unstable-if-failed: true
335       - workspace-cleanup:
336           exclude:
337             # Do not clean up *.jenkins-trigger files for jobs that use a
338             # properties file as input for triggering another build.
339             - '**/*.jenkins-trigger'
340           fail-build: false
341
342 - builder:
343     name: opendaylight-infra-stack
344     # opendaylight-infra-stack.sh has a required variable {stack-template} that
345     # must be passed into this macro.
346     builders:
347       - shell: !include-raw: opendaylight-infra-stack.sh
348       - shell: !include-raw-escape: opendaylight-infra-copy-ssh-keys.sh
349
350 - builder:
351     name: opendaylight-infra-push-gerrit-patch
352     # opendaylight-infra-push-gerrit-patch.sh allows a job to push a patch to
353     # Gerrit in an automated fashion. This is meant for tasks that creates
354     # the same patch regularly and needs the ability to detect if an unreviewed
355     # patch already exists. In which case it will update the existing patch.
356     #
357     # Note: This patch assumes the $WORKSPACE contains the project repo with
358     #       the files changed already "git add" and waiting for a "git commit" call.
359     #
360     # This script requires the following JJB variables to be passed in:
361     #     {project}       Gerrit project-name
362     #     {gerrit-topic}  Gerrit topic, please make a unique topic.
363     #     {gerrit-commit-message} Commit message to assign to commit.
364     # NOTE: Requires git review to be installed on node.
365     builders:
366       - shell: !include-raw: opendaylight-infra-push-gerrit-patch.sh
367
368 - builder:
369     name: distribute-build-url
370     # Place URL of the current run of a build job to a file at given path.
371     builders:
372       - shell: 'echo "$BUILD_URL" > {path}/build.url'
373
374 - builder:
375     name: wipe-org-opendaylight-repo
376     builders:
377       - shell: 'if [ -d /tmp/r/org/opendaylight ]; then rm -rf /tmp/r/org/opendaylight; fi'
378
379 - builder:
380     name: wipe-local-maven-repo
381     builders:
382       - shell: 'if [ -d /tmp/r ]; then rm -rf /tmp/r; fi'
383
384 - builder:
385     name: jacoco-nojava-workaround
386     builders:
387       - shell: 'mkdir -p $WORKSPACE/target/classes $WORKSPACE/jacoco/classes'
388
389 - builder:
390     name: check-clm
391     builders:
392       - sonatype-clm:
393           application-name: '{application-name}'
394
395 - builder:
396     name: releng-check-unicode
397     builders:
398       - shell: |
399           $WORKSPACE/scripts/check-unicode.sh jjb/
400
401 - builder:
402     name: provide-maven-settings
403     builders:
404       - config-file-provider:
405           files:
406             - file-id: '{global-settings-file}'
407               variable: 'GLOBAL_SETTINGS_FILE'
408             - file-id: '{settings-file}'
409               variable: 'SETTINGS_FILE'
410
411 - builder:
412     name: releng-fetch-p2zip-if-necessary
413     builders:
414       - shell: |
415           # Cleanup any existing zips and metadata before we download the new update site
416           rm -f *.zip *.xml
417       - conditional-step:
418           condition-kind: strings-match
419           condition-string1: '$P2ZIP_URL'
420           condition-string2: ''
421           condition-basedir: workspace
422           steps:
423             # TODO: Figure out latest snapshot version number to pull rather than hardcoding 1.1.1-SNAPSHOT
424             - maven-target:
425                 maven-version: '{maven-version}'
426                 goals: >
427                     org.apache.maven.plugins:maven-dependency-plugin:get
428                     org.apache.maven.plugins:maven-dependency-plugin:copy
429                     -V -B
430                     -Dartifact=org.opendaylight.yangide:org.opendaylight.yangide.update-site:1.1.1-SNAPSHOT:zip
431                     -DoutputDirectory=$WORKSPACE
432                 settings: '{settings}'
433                 global-settings: '{global-settings}'
434
435 - builder:
436     name: releng-generate-p2pom
437     builders:
438       - shell: !include-raw: include-raw-generate-p2pom.sh
439
440 - builder:
441     name: releng-update-p2composite-metadata
442     builders:
443       - shell: !include-raw: include-raw-update-p2composite-metadata.sh
444       - conditional-step:
445           condition-kind: file-exists
446           condition-filename: deploy-composite-repo.xml
447           condition-basedir: workspace
448           steps:
449             - maven-target:
450                 maven-version: '{maven-version}'
451                 pom: 'deploy-composite-repo.xml'
452                 goals: 'clean deploy -V -B -Dmaven.repo.local=/tmp/r'
453                 settings: '{settings}'
454                 global-settings: '{global-settings}'
455
456 - builder:
457     name: releng-stage-release
458     builders:
459       - shell: !include-raw: include-raw-stage-release.sh
460
461 - wrapper:
462     # This wrapper is required for all jobs as it configures the wrappers
463     # needed by OpenDaylight infra.
464     name: opendaylight-infra-wrappers
465     wrappers:
466       - mask-passwords
467       - config-file-provider:
468           files:
469             - file-id: npmrc
470               target: '$HOME/.npmrc'
471             - file-id: rackspace-heat
472               target: '$HOME/.config/openstack/clouds.yaml'
473       - timeout:
474           type: absolute
475           timeout: '{build-timeout}'
476           timeout-var: 'BUILD_TIMEOUT'
477           fail: true
478       - timestamps
479       - ssh-agent-credentials:
480           users:
481             - 'opendaylight-jenkins-ssh'
482       - openstack:
483           single-use: true
484
485 - builder:
486     name: packer-validate
487     builders:
488       - config-file-provider:
489           files:
490             - file-id: 'packer-cloud-env'
491               variable: 'CLOUDENV'
492       - shell: |
493           cd packer
494           varfiles="../packer/vars/*"
495           templates="../packer/templates/*"
496           provision="../packer/provision/*.sh"
497           for v in $varfiles; do
498               [[ "${v##*/}" =~ ^(cloud-env.*)$ ]] && continue
499               for t in $templates; do
500                   export PACKER_LOG="yes" && \
501                   export PACKER_LOG_PATH="packer-validate-${v##*/}-${t##*/}.log" && \
502                               packer.io validate -var-file=$CLOUDENV \
503                               -var-file=$v $t
504                   if [ $? -ne 0 ]; then
505                       break
506                   fi
507               done
508           done
509           for p in $provision; do
510               /bin/bash -n $p > provision-validate-${p##*/}.log 2>&1
511           done
512
513
514 - builder:
515     name: packer-build
516     builders:
517       - config-file-provider:
518           files:
519             - file-id: 'packer-cloud-env'
520               variable: 'CLOUDENV'
521       - shell: |
522           cd packer
523           export PACKER_LOG="yes" && \
524           export PACKER_LOG_PATH="packer-build.log" && \
525                       packer.io build -color=false -var-file=$CLOUDENV \
526                        -var-file=../packer/vars/{platform}.json \
527                        ../packer/templates/{template}.json
528
529 - builder:
530     # TODO: Verify signature after downloading users public key from a locally created
531     # repository instead of the public keymesh. This requires a process in place to get ODL
532     # developers public keys into a local repository without increasing the job thoughput.
533     name: verify-gpg-signature
534     builders:
535       - shell: !include-raw: include-raw-verify-gpg-signatures.sh
536
537 - builder:
538     name: opendaylight-infra-jjbini
539     builders:
540       - config-file-provider:
541           files:
542             - file-id: 'jjbini'
543               target: '$HOME/.config/jenkins_jobs/jenkins_jobs.ini'
544
545 - builder:
546     name: distribution-check-wipe
547     # Step zero: Wipe file repositories up front.
548     builders:
549       - shell: |
550           echo "wipe r: the local Maven repository"
551           rm -rfv /tmp/r
552           echo "wipe n: the fake remote (Nexus) repository"
553           rm -rfv /tmp/n
554           echo "wipe t: the transient repository used in some manipulations"
555           rm -rfv /tmp/t
556
557 - builder:
558     name: distribution-check-build-project
559     # Step one: Online build of the project, using local repository /tmp/r/ and deploying artifacts to /tmp/n/.
560     # Ordinary SingleFeatureTest failures are detected in the verify job, so we can use "q" profile here.
561     # Arguments:
562     #   pom: Relative path to pom file to use. Typically '$GERRIT_PROJECT/pom.xml'.
563     builders:
564       - maven-target:
565           maven-version: 'mvn33'
566           pom: '{pom}'
567           goals: |
568               clean deploy dependency:tree
569               -DoutputFile=dependency_tree.txt
570               -Pq
571               -DaltDeploymentRepository=fake-nexus::default::file:///tmp/n/
572               {mvn-opts}
573           java-opts:
574             - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
575           settings: 'integration-settings'
576           settings-type: cfp
577           global-settings: 'odl-global-settings'
578           global-settings-type: cfp
579
580 - builder:
581     name: distribution-check-verify-groupid
582     # Step two: Verify all deployed artifacts belong to the project's groupId.
583     # This is done by moving the allowed directories out of /tmp/n and checking no files remained there.
584     # The correct directory is derived from $GERRIT_PROJECT.
585     # TODO: Verify all deployed artifacts are snapshots.
586     # Arguments:
587     #   gerrit-project: Project name as nexus URI part. Typically '$GERRIT_PROJECT'.
588     builders:
589       - shell: |
590           mkdir -p /tmp/t/org/opendaylight/{gerrit-project}
591           mv /tmp/n/org/opendaylight/{gerrit-project}/* /tmp/t/org/opendaylight/{gerrit-project}/
592           test -z "`find /tmp/n/ -type f`" || ( echo "ERROR: Mismatched groupId detected (see above)." && false )
593           rm -rf /tmp/n
594           mv /tmp/t /tmp/n
595
596 - builder:
597     name: distribution-check-download-deps
598     # Step three: Online build of integration distribution.
599     # This step is mainly used for downloading other project artifacts.
600     # Running SingleFeaturesTest here does not seem to be required, so -Pq is used again.
601     # Arguments:
602     #   dist-pom: Relative path to pom file to use. 'distribution/pom.xml' is recommended.
603     builders:
604       - maven-target:
605           maven-version: 'mvn33'
606           pom: '{dist-pom}'
607           goals: |
608               clean install dependency:tree
609               -DoutputFile=dependency_tree.txt
610               -Pq
611               {mvn-opts}
612           java-opts:
613             - '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
614           settings: 'integration-settings'
615           settings-type: cfp
616           global-settings: 'odl-global-settings'
617           global-settings-type: cfp
618
619 - builder:
620     name: distribution-check-delete-snapshots
621     # Step four: Delete snapshot artifacts from the local repository.
622     # This is critical to detect orphaned artifacts or missing project-internal dependency declarations.
623     # Also other files related to maven repository resolution are removed,
624     # and then empty directories are removed, in order to simplify debugging.
625     builders:
626       - shell: !include-raw-escape: integration-distribution-delete-snaphot-artifacts.sh
627
628 - builder:
629     name: distribution-check-configure-remotes
630     # Now the ugly part. It seems that the only way to tell Maven 2+
631     # which remote repositories to use is via settings.xml file.
632     # So we create such a file here, but it needs most of odlparent:settings.xml
633     builders:
634       - shell: |
635           echo '
636           <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
637             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
638             xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
639             https://maven.apache.org/xsd/settings-1.0.0.xsd">
640             <profiles>
641               <profile>
642                 <id>opendaylight-release</id>
643                 <repositories>
644                   <repository>
645                     <id>opendaylight-mirror</id>
646                     <name>opendaylight</name>
647                     <url>https://nexus.opendaylight.org/content/repositories/public/</url>
648                     <releases><updatePolicy>never</updatePolicy></releases>
649                     <snapshots><enabled>false</enabled></snapshots>
650                   </repository>
651                 </repositories>
652                 <pluginRepositories>
653                   <pluginRepository>
654                     <id>opendaylight-plugin-mirror</id>
655                     <name>opendaylight-plugin</name>
656                     <url>https://nexus.opendaylight.org/content/repositories/public/</url>
657                     <releases><updatePolicy>never</updatePolicy></releases>
658                     <snapshots><enabled>false</enabled></snapshots>
659                   </pluginRepository>
660                 </pluginRepositories>
661               </profile>
662               <profile>
663                 <id>file-snapshots</id>
664                 <repositories>
665                   <repository>
666                     <id>file-snapshots</id>
667                     <name>file</name>
668                     <url>file:///tmp/n/</url>
669                     <releases><enabled>false</enabled></releases>
670                   </repository>
671                 </repositories>
672                 <pluginRepositories>
673                   <pluginRepository>
674                     <id>file-plugin-snapshots</id>
675                     <name>file-plugin</name>
676                     <url>file:///tmp/n/</url>
677                     <releases><enabled>false</enabled></releases>
678                   </pluginRepository>
679                 </pluginRepositories>
680               </profile>
681             </profiles>
682             <activeProfiles>
683               <activeProfile>file-snapshots</activeProfile>
684               <activeProfile>opendaylight-release</activeProfile>
685             </activeProfiles>
686           </settings>
687           ' > fake_remotes.xml
688           # Notes: The settings are minimal in order to detect breakage scenarios,
689           # while allowing for the following quirks:
690           # * Some plugins seem to have hardcoded repos, for example check-license looks at repository.apache.org
691           # * Some plugin artifacts (related to surefire) are not downloaded when tests are skipped.
692           # * populate-local-repo looks at oss.sonatype.org and does not store things (like guava) to /tmp/r
693
694 - builder:
695     name: distribution-check-repeat-build
696     # Step five: Repeat the distribution build but with the new settings.
697     # Here, only the project snapshot artifacts deployed to /tmp/n are available,
698     # which faithfully reproduces conditions in later verify-like job runs.
699     # We cannot use --offline, because: "Cannot access file (file:///tmp/n) in offline mode"
700     # This is where SingleFeatureTest is not skipped.
701     # Arguments:
702     #   dist-pom: Relative path to pom file to use. 'distribution/pom.xml' is recommended.
703     builders:
704       - maven-target:
705           maven-version: 'mvn33'
706           pom: '{dist-pom}'
707           goals: |
708               clean install dependency:tree
709               -DoutputFile=dependency_tree.txt -s fake_remotes.xml
710               -Pq
711               -DskipTests=false
712               {mvn-opts}
713           java-opts:
714             - '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
715
716 - builder:
717     name: distribution-check-deploy-distribution
718     # Deploy distribution-karaf zip to Nexus SNAPSHOT repo for testing.
719     # Arguments:
720     #   {settings-file} to use for opendaylight-snapshot credentials
721     builders:
722       - inject:
723           properties-content: BUNDLE_POM={dist-pom}
724       - shell: !include-raw-escape: deploy-distribution-get-vars.sh
725       - inject:
726           properties-file: deploy-distribution.env
727       - config-file-provider:
728           files:
729             - file-id: odl-global-settings
730               variable: GLOBAL_SETTINGS_FILE
731             - file-id: integration-settings
732               variable: SETTINGS_FILE
733       - shell: !include-raw-escape: deploy-distribution.sh
734       # Re-inject BUNDLE_URL so that downstream projects can use it.
735       - inject:
736           properties-file: deploy-distribution.env