Update Acumos to JDK 11
[infra/cicd.git] / jjb / onap / global-templates-onap-java.yaml
1 - job-template:
2     name: 'onap-{project-name}-{stream}-verify-java'
3
4     disabled: false
5
6     concurrent: true
7
8     properties:
9       - logrotate
10
11     jdk-version: jdk8
12
13     parameters:
14       - project-parameters:
15           project: 'onap/{project}'
16           branch: '{branch}'
17       - nordix-gerrit-parameters
18       - label:
19           name: SLAVE_LABEL
20           default: 'onap-build-ubuntu1604-{jdk-version}'
21           description: 'Slave label to schedule this job on'
22       - string:
23           name: JAVA_HOME
24           default: /usr/lib/jvm/openjdk-amd64
25           description: Java home
26       - string:
27           name: MVN_VERSION
28           default: 3.5.4
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
39     scm:
40       - git-scm-gerrit:
41           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
42           branch: '{branch}'
43           refspec: $GERRIT_REFSPEC
44           wipe_workspace: true
45           clean_before: false
46
47     triggers:
48       - nordix-gerrit-trigger-patchset-created:
49           project: 'onap/{project}'
50           branch: '{branch}'
51           files: '**'
52
53     wrappers:
54       - build-timeout:
55           timeout: 45
56
57     builders:
58       - shell:
59           !include-raw-escape: ../global/verify-jobs.sh