Merge "add ci image building 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
65
66
67 - job-template:
68     name: 'ties-{project-name}-verify-java'
69     node: oransc-ubuntu2004
70     disabled: false
71     concurrent: true
72     subdirectory: 
73     trigger_branch_pattern: '**'
74     trigger_files_path_pattern: '**'
75
76     properties:
77       - logrotate
78
79     parameters:
80       - nordix-gerrit-parameters
81       - string:
82           name: PROJECT
83           default: '{project}'
84           description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
85       - string:
86           name: JAVA_HOME
87           default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
88           description: Java home
89       - string:
90           name: MVN_VERSION
91           default: 3.6.2
92           description: Maven version
93       - string:
94           name: MVN_URL
95           default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/${{MVN_VERSION}}/apache-maven-${{MVN_VERSION}}-bin.zip
96           description: URL to download Maven
97       - string:
98           name: MVN
99           default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
100           description: Path to mvn executable
101       - string:
102           name: GO_PATH
103           default: '/usr/local/go/bin'
104           description: Path to go executable
105       - string:
106           name: SUBDIRECTORY
107           default: '{subdirectory}'
108           description: Subdirectory of the project
109       
110     scm:
111       - git-scm-gerrit:
112           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
113           branch: $GERRIT_BRANCH
114           refspec: $GERRIT_REFSPEC
115           wipe_workspace: true
116           clean_before: false
117
118     triggers:
119       - nordix-gerrit-trigger-patchset-created:
120           project: '{project}'
121           branch: '{trigger_branch_pattern}'
122           files: '{trigger_files_path_pattern}'
123
124     wrappers:
125       - build-timeout:
126           timeout: 45
127
128     builders:
129       - shell:
130           !include-raw-escape: ./verify-jobs.sh