blob: 45715ec0649f9fe13eb07a1549cd0669ac21630f [file] [log] [blame]
liamfallon6eda9732021-03-23 11:57:00 +00001---
2# This is a java verify template for local repositories
3- job-template:
4 name: 'local-{project-name}-{stream}-verify-java'
5 disabled_job_var: false
6 node: onap-ubuntu1804
7
8 disabled: '{obj:disabled_job_var}'
9 concurrent: true
10 mvn_settings_xml_version:
11 mvn_params:
12 mvn_version: 3.5.4
13 properties:
14 - logrotate
15
16 parameters:
17 - project-parameters:
18 project: 'local/{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: '{mvn_version}'
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/{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