ONAP: Add new CPS project to Nordix
[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     mvn_settings_xml_version:
9     mvn_params:
10     subdirectory:
11     properties:
12       - logrotate
13
14     parameters:
15       - project-parameters:
16           project: 'onap/{project}'
17           branch: '{branch}'
18       - nordix-gerrit-parameters
19       - string:
20           name: JAVA_HOME
21           default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
22           description: Java home
23       - string:
24           name: MVN_VERSION
25           default: 3.5.4
26           description: Maven version
27       - string:
28           name: MVN_URL
29           default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
30           description: URL to download Maven
31       - string:
32           name: MVN
33           default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
34           description: Path to mvn executable
35       - string:
36           name: MVN_SETTINGS_XML_VERSION
37           default: '{mvn_settings_xml_version}'
38           description: Commit ID of ONAP Oparent repository (https://git.onap.org/oparent/) to pull. Used for Maven settings file. Can be left blank to pull the latest version.
39       - string:
40           name: MVN_PARAMS
41           default: '{mvn_params}'
42           description: Maven build parameters
43       - string:
44           name: SUBDIRECTORY
45           default: '{subdirectory}'
46           description: Subdirectory of the workspace for which the pom.xml will be called. This allows the verify to be called against a specific directory
47     scm:
48       - git-scm-gerrit:
49           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
50           branch: '{branch}'
51           refspec: $GERRIT_REFSPEC
52           wipe_workspace: true
53           clean_before: false
54
55     triggers:
56       - nordix-gerrit-trigger-patchset-created:
57           project: 'onap/{project}'
58           branch: '{branch}'
59           files: '**'
60
61     wrappers:
62       - build-timeout:
63           timeout: 45
64
65     builders:
66       - shell:
67           !include-raw-escape: ./verify-jobs.sh