Meridio: update node to 2204
[infra/cicd.git] / jjb / onap / global-templates-onap-java.yaml
1 - job-template:
2     name: 'onap-{project-name}-{stream}-verify-java'
3     disabled_job_var: false
4     node: onap-ubuntu1804
5
6     disabled: '{obj:disabled_job_var}'
7     concurrent: true
8     mvn_settings_xml_version:
9     mvn_params:
10     mvn_version: 3.5.4
11     subdirectory:
12     properties:
13       - logrotate
14
15     parameters:
16       - project-parameters:
17           project: 'onap/{project}'
18           branch: '{branch}'
19       - nordix-gerrit-parameters
20       - string:
21           name: JAVA_HOME
22           default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
23           description: Java home
24       - string:
25           name: MVN_VERSION
26           default: '{mvn_version}'
27           description: Maven version
28       - string:
29           name: MVN_URL
30           default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
31           description: URL to download Maven
32       - string:
33           name: MVN
34           default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
35           description: Path to mvn executable
36       - string:
37           name: MVN_SETTINGS_XML_VERSION
38           default: '{mvn_settings_xml_version}'
39           description: Commit ID of ONAP Oparent repository (https://git.onap.org/oparent/) to pull. Used for Maven settings file. Can be left blank to pull the latest version.
40       - string:
41           name: MVN_PARAMS
42           default: '{mvn_params}'
43           description: Maven build parameters
44       - string:
45           name: SUBDIRECTORY
46           default: '{subdirectory}'
47           description: Subdirectory of the workspace for which the pom.xml will be called. This allows the verify to be called against a specific directory
48     scm:
49       - git-scm-gerrit:
50           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
51           branch: '{branch}'
52           refspec: $GERRIT_REFSPEC
53           wipe_workspace: true
54           clean_before: false
55
56     triggers:
57       - nordix-gerrit-trigger-patchset-created:
58           project: 'onap/{project}'
59           branch: '{branch}'
60           files: '**'
61
62     wrappers:
63       - build-timeout:
64           timeout: 45
65
66     builders:
67       - shell:
68           !include-raw-escape: ./verify-jobs.sh
69
70 # csits for diferent projects are different so need to have special handling
71 - job-template:
72     name: 'onap-policy-docker-{stream}-csit-java'
73     disabled_job_var: false
74     node: onap-ubuntu1804
75
76     disabled: '{obj:disabled_job_var}'
77     concurrent: true
78     properties:
79       - logrotate
80
81     parameters:
82       - project-parameters:
83           project: 'onap/{project}'
84           branch: '{branch}'
85       - nordix-gerrit-parameters
86       - string:
87           name: JAVA_HOME
88           default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
89           description: Java home
90       - string:
91           name: CSIT_TEST_NAMES
92           default: '{csit_test_names}'
93           description: The name of the csits test to run
94     scm:
95       - git-scm-gerrit:
96           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
97           branch: 'master'
98           refspec: $GERRIT_REFSPEC
99           wipe_workspace: true
100           clean_before: false
101
102     triggers:
103       - nordix-gerrit-trigger-patchset-created:
104           project: 'onap/{project}'
105           branch: '{branch}'
106           files: '**'
107
108     wrappers:
109       - build-timeout:
110           timeout: 45
111
112     builders:
113       - 'wait-pkg-mgr-macro'
114       - shell:
115           !include-raw-escape: ./policy-docker-csit-jobs.sh