a3b881c22274da632b2780eff71e778d88d56f05
[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       - nordix-onap-java-build-parameters
21
22     scm:
23       - git-scm-gerrit:
24           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
25           branch: '{branch}'
26           refspec: $GERRIT_REFSPEC
27           wipe_workspace: true
28           clean_before: false
29
30     triggers:
31       - nordix-gerrit-trigger-patchset-created:
32           project: 'onap/{project}'
33           branch: '{branch}'
34           files: '**'
35
36     wrappers:
37       - build-timeout:
38           timeout: 45
39
40     builders:
41       - shell:
42           !include-raw-escape: ./verify-jobs.sh
43
44 - job-template:
45     name: 'onap-{project-name}-{stream}-time-trigger-java'
46     disabled_job_var: false
47     node: onap-ubuntu1804
48
49     disabled: '{obj:disabled_job_var}'
50     concurrent: true
51     mvn_settings_xml_version:
52     mvn_params:
53     mvn_version: 3.5.4
54     subdirectory:
55     properties:
56       - logrotate
57
58     parameters:
59       - project-parameters:
60           project: 'onap/{project}'
61           branch: '{branch}'
62       - nordix-gerrit-parameters
63       - nordix-onap-java-build-parameters
64
65     scm:
66       - git-scm-gerrit:
67           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
68           branch: '{branch}'
69           refspec: $GERRIT_REFSPEC
70           wipe_workspace: true
71           clean_before: false
72
73     triggers:
74       - timed: '{timer}'
75
76     wrappers:
77       - build-timeout:
78           timeout: 45
79
80     builders:
81       - shell:
82           !include-raw-escape: ./verify-jobs.sh
83
84 # csits for diferent projects are different so need to have special handling
85 - job-template:
86     name: 'onap-policy-docker-{stream}-csit-java'
87     disabled_job_var: false
88     node: onap-ubuntu1804
89
90     disabled: '{obj:disabled_job_var}'
91     concurrent: true
92     properties:
93       - logrotate
94
95     parameters:
96       - project-parameters:
97           project: 'onap/{project}'
98           branch: '{branch}'
99       - nordix-gerrit-parameters
100       - string:
101           name: JAVA_HOME
102           default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
103           description: Java home
104       - string:
105           name: CSIT_TEST_NAMES
106           default: '{csit_test_names}'
107           description: The name of the csits test to run
108     scm:
109       - git-scm-gerrit:
110           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
111           branch: 'master'
112           refspec: $GERRIT_REFSPEC
113           wipe_workspace: true
114           clean_before: false
115
116     triggers:
117       - nordix-gerrit-trigger-patchset-created:
118           project: 'onap/{project}'
119           branch: '{branch}'
120           files: '**'
121
122     wrappers:
123       - build-timeout:
124           timeout: 45
125
126     builders:
127       - 'wait-pkg-mgr-macro'
128       - shell:
129           !include-raw-escape: ./policy-docker-csit-jobs.sh