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