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