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