41160c268222f112c067ca483e306e216dd5aba0
[infra/cicd.git] / jjb / onap / global-templates-onap-java.yaml
1 - job-template:
2     name: 'onap-{project-name}-{stream}-verify-java'
3
4     node: geode-ubuntu1804
5
6     disabled: false
7
8     concurrent: true
9
10     properties:
11       - logrotate
12
13     parameters:
14       - string:
15           name: NODE
16           default: '{node}'
17           description: node to do build on
18       - project-parameters:
19           project: 'onap/{project}'
20           branch: '{branch}'
21       - nordix-gerrit-parameters
22       - string:
23           name: JAVA_HOME
24           default: /usr/lib/jvm/java-1.8.0-openjdk-amd64
25           description: Java home
26       - string:
27           name: MVN_VERSION
28           default: 3.3.9
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
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: '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