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