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