Change java version for ccsdk-oran verify job
[infra/cicd.git] / jjb / onap / global-templates-onap-java.yaml
1 - job-template:
2     name: 'onap-{project-name}-{stream}-verify-java'
3     disabled_job_var: false
4     jdk-version: jdk8
5
6     disabled: '{obj:disabled_job_var}'
7     concurrent: true
8     properties:
9       - logrotate
10
11     parameters:
12       - project-parameters:
13           project: 'onap/{project}'
14           branch: '{branch}'
15       - nordix-gerrit-parameters
16       - label:
17           name: SLAVE_LABEL
18           default: 'onap-build-ubuntu1604-{jdk-version}'
19           description: 'Slave label to schedule this job on'
20       - string:
21           name: JAVA_HOME
22           default: /usr/lib/jvm/openjdk-amd64
23           description: Java home
24       - string:
25           name: MVN_VERSION
26           default: 3.5.4
27           description: Maven version
28       - string:
29           name: MVN_URL
30           default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
31           description: URL to download Maven
32       - string:
33           name: MVN
34           default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
35           description: Path to mvn executable
36
37     scm:
38       - git-scm-gerrit:
39           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
40           branch: '{branch}'
41           refspec: $GERRIT_REFSPEC
42           wipe_workspace: true
43           clean_before: false
44
45     triggers:
46       - nordix-gerrit-trigger-patchset-created:
47           project: 'onap/{project}'
48           branch: '{branch}'
49           files: '**'
50
51     wrappers:
52       - build-timeout:
53           timeout: 45
54
55     builders:
56       - shell:
57           !include-raw-escape: ../global/verify-jobs.sh