Add option for ONAP projects to define diffren mvn version
[infra/cicd.git] / jjb / onap / global-templates-local-onap-java.yaml
1 ---
2 # This is a separate java verify template for the local ONAP repositories
3 # that are not push to ONAP upstream.
4 - job-template:
5     name: 'local-onap-{project-name}-{stream}-verify-java'
6     disabled_job_var: false
7     node: onap-ubuntu1804
8
9     disabled: '{obj:disabled_job_var}'
10     concurrent: true
11     mvn_settings_xml_version:
12     mvn_params:
13     mvn_version: 3.5.4
14     properties:
15       - logrotate
16
17     parameters:
18       - project-parameters:
19           project: 'local/onap/{project}'
20           branch: '{branch}'
21       - nordix-gerrit-parameters
22       - string:
23           name: JAVA_HOME
24           default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
25           description: Java home
26       - string:
27           name: MVN_VERSION
28           default: '{mvn_version}'
29           description: Maven version
30       - string:
31           name: MVN_URL
32           default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
33           description: URL to download Maven
34       - string:
35           name: MVN
36           default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
37           description: Path to mvn executable
38       - string:
39           name: MVN_SETTINGS_XML_VERSION
40           default: '{mvn_settings_xml_version}'
41           description: Commit ID of ONAP Oparent repository (https://git.onap.org/oparent/) to pull. Used for Maven settings file. Can be left blank to pull the latest version.
42       - string:
43           name: MVN_PARAMS
44           default: '{mvn_params}'
45           description: Maven build parameters
46     scm:
47       - git-scm-gerrit:
48           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
49           branch: '{branch}'
50           refspec: $GERRIT_REFSPEC
51           wipe_workspace: true
52           clean_before: false
53
54     triggers:
55       - nordix-gerrit-trigger-patchset-created:
56           project: 'local/onap/{project}'
57           branch: '{branch}'
58           files: '**'
59
60     wrappers:
61       - build-timeout:
62           timeout: 45
63
64     builders:
65       - shell:
66           !include-raw-escape: ./verify-jobs.sh