ACUMOS: Improve jenkins jobs for Acumos projects
[infra/cicd.git] / jjb / acumos / global-templates-acumos-java.yaml
1 - job-template:
2     name: 'acumos-{project-name}-verify-java'
3
4     node: acumos-ubuntu1604
5
6     disabled: false
7
8     concurrent: true
9
10     properties:
11       - logrotate
12
13     parameters:
14       - nordix-gerrit-parameters
15       - string:
16           name: PROJECT
17           default: 'acumos/{project}'
18           description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
19       - string:
20           name: JAVA_HOME
21           default: /usr/lib/jvm/java-1.8.0-openjdk-amd64
22           description: Java home
23       - string:
24           name: MVN_VERSION
25           default: 3.3.9
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
36     scm:
37       - git-scm-gerrit:
38           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
39           branch: $GERRIT_BRANCH
40           refspec: $GERRIT_REFSPEC
41           wipe_workspace: true
42           clean_before: false
43
44     triggers:
45       - nordix-gerrit-trigger-patchset-created:
46           project: 'acumos/{project}'
47           branch: '**'
48           files: '**'
49
50     wrappers:
51       - build-timeout:
52           timeout: 45
53
54     builders:
55       - shell:
56           !include-raw-escape: ./verify-jobs.sh