Merge "ONAP: Disable java verify for SDC and uds-sdc-customization projects"
[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     jdk-version: jdk8
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       - label:
20           name: SLAVE_LABEL
21           default: 'onap-build-ubuntu1604-{jdk-version}'
22           description: 'Slave label to schedule this job on'
23       - string:
24           name: JAVA_HOME
25           default: /usr/lib/jvm/openjdk-amd64
26           description: Java home
27       - string:
28           name: MVN_VERSION
29           default: 3.5.4
30           description: Maven version
31       - string:
32           name: MVN_URL
33           default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
34           description: URL to download Maven
35       - string:
36           name: MVN
37           default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
38           description: Path to mvn executable
39
40     scm:
41       - git-scm-gerrit:
42           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
43           branch: '{branch}'
44           refspec: $GERRIT_REFSPEC
45           wipe_workspace: true
46           clean_before: false
47
48     triggers:
49       - nordix-gerrit-trigger-patchset-created:
50           project: 'local/onap/{project}'
51           branch: '{branch}'
52           files: '**'
53
54     wrappers:
55       - build-timeout:
56           timeout: 45
57
58     builders:
59       - shell:
60           !include-raw-escape: ../global/verify-jobs.sh