Merge "Allow mvn parameters to be set in verify jobs"
[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     properties:
14       - logrotate
15
16     parameters:
17       - project-parameters:
18           project: 'local/onap/{project}'
19           branch: '{branch}'
20       - nordix-gerrit-parameters
21       - string:
22           name: JAVA_HOME
23           default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
24           description: Java home
25       - string:
26           name: MVN_VERSION
27           default: 3.5.4
28           description: Maven version
29       - string:
30           name: MVN_URL
31           default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
32           description: URL to download Maven
33       - string:
34           name: MVN
35           default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
36           description: Path to mvn executable
37       - string:
38           name: MVN_SETTINGS_XML_VERSION
39           default: '{mvn_settings_xml_version}'
40           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.
41       - string:
42           name: MVN_PARAMS
43           default: '{mvn_params}'
44           description: Maven build parameters
45     scm:
46       - git-scm-gerrit:
47           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
48           branch: '{branch}'
49           refspec: $GERRIT_REFSPEC
50           wipe_workspace: true
51           clean_before: false
52
53     triggers:
54       - nordix-gerrit-trigger-patchset-created:
55           project: 'local/onap/{project}'
56           branch: '{branch}'
57           files: '**'
58
59     wrappers:
60       - build-timeout:
61           timeout: 45
62
63     builders:
64       - shell:
65           !include-raw-escape: ./verify-jobs.sh