Testing RANPM-datafilecollector verify 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
7     properties:
8       - logrotate
9
10     parameters:
11       - nordix-gerrit-parameters
12       - string:
13           name: PROJECT
14           default: 'oransc/{project}'
15           description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
16       - string:
17           name: JAVA_HOME
18           default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
19           description: Java home
20       - string:
21           name: MVN_VERSION
22           default: 3.6.2
23           description: Maven version
24       - string:
25           name: MVN_URL
26           default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/${{MVN_VERSION}}/apache-maven-${{MVN_VERSION}}-bin.zip
27           description: URL to download Maven
28       - string:
29           name: MVN
30           default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
31           description: Path to mvn executable
32       - string:
33           name: GO_PATH
34           default: '/usr/local/go/bin'
35           description: Path to go executable
36       - string:
37           name: TRIGGER_BRANCH_PATTERN
38           default: '**'
39           description: Branch patterns to trigger against 
40       - string:
41           name: TRIGGER_FILES_PATH_PATTERN
42           default: '**'
43           description: File path pattern to trigger against
44
45     scm:
46       - git-scm-gerrit:
47           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
48           branch: $GERRIT_BRANCH
49           refspec: $GERRIT_REFSPEC
50           wipe_workspace: true
51           clean_before: false
52
53     triggers:
54       - nordix-gerrit-trigger-patchset-created:
55           project: 'oransc/{project}'
56           branch: $TRIGGER_BRANCH_PATTERN
57           files: $TRIGGER_FILES_PATH_PATTERN
58
59     wrappers:
60       - build-timeout:
61           timeout: 45
62
63     builders:
64       - shell:
65           !include-raw-escape: ./verify-jobs.sh