Merge "Metal3: Add BMO e2e job"
[infra/cicd.git] / jjb / oransc / global-templates-oran-java.yaml
1 - job-template:
2     name: 'oransc-{project-name}-verify-java'
3     node: oransc-ubuntu2004
4     disabled: false
5     concurrent: true
6     subdirectory: 
7     trigger_branch_pattern: '**'
8     trigger_files_path_pattern: '**'
9
10     properties:
11       - logrotate
12
13     parameters:
14       - nordix-gerrit-parameters
15       - string:
16           name: PROJECT
17           default: 'oransc/{project}'
18           description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
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.6.2
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: GO_PATH
37           default: '/usr/local/go/bin'
38           description: Path to go executable
39       - string:
40           name: SUBDIRECTORY
41           default: '{subdirectory}'
42           description: Subdirectory of the project
43       
44     scm:
45       - git-scm-gerrit:
46           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
47           branch: $GERRIT_BRANCH
48           refspec: $GERRIT_REFSPEC
49           wipe_workspace: true
50           clean_before: false
51
52     triggers:
53       - nordix-gerrit-trigger-patchset-created:
54           project: 'oransc/{project}'
55           branch: '{trigger_branch_pattern}'
56           files: '{trigger_files_path_pattern}'
57
58     wrappers:
59       - build-timeout:
60           timeout: 45
61
62     builders:
63       - shell:
64           !include-raw-escape: ./verify-jobs.sh