Attempt to move build to a different node part 2
[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     disabled: false
7
8     concurrent: true
9
10     properties:
11       - logrotate
12
13     parameters:
14       - project-parameters:
15           project: 'onap/{project}'
16           branch: '{branch}'
17       - nordix-gerrit-parameters
18       - string:
19           name: JAVA_HOME
20           default: /usr/lib/jvm/java-1.8.0-openjdk-amd64
21           description: Java home
22       - string:
23           name: MVN_VERSION
24           default: 3.3.9
25           description: Maven version
26       - string:
27           name: MVN_URL
28           default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
29           description: URL to download Maven
30       - string:
31           name: MVN
32           default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
33           description: Path to mvn executable
34       - string:
35           name: NODE
36           default: '${node}'
37           description: node to do build on
38
39     scm:
40       - git-scm-gerrit:
41           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
42           branch: '{branch}'
43           refspec: $GERRIT_REFSPEC
44           wipe_workspace: true
45           clean_before: false
46
47     triggers:
48       - nordix-gerrit-trigger-patchset-created:
49           project: 'onap/{project}'
50           branch: '{branch}'
51           files: '**'
52
53     wrappers:
54       - build-timeout:
55           timeout: 45
56
57     builders:
58       - shell:
59           !include-raw-escape: ../global/verify-jobs.sh