blob: 6c874e75cc2cb3bd75f3ac3aab7cbd6d7402a872 [file] [log] [blame]
robert.tomczyke53f0092019-06-05 12:03:09 +01001- job-template:
2 name: 'onap-{project-name}-{stream}-verify-java'
robert.tomczyk19d1ad12020-03-23 16:35:32 +00003 disabled_job_var: false
robert.tomczyk08e50eb2020-08-11 16:53:28 +01004 node: onap-ubuntu1804
robert.tomczyke53f0092019-06-05 12:03:09 +01005
robert.tomczyk19d1ad12020-03-23 16:35:32 +00006 disabled: '{obj:disabled_job_var}'
robert.tomczyke53f0092019-06-05 12:03:09 +01007 concurrent: true
robert.tomczyk750a20f2020-08-18 11:08:43 +01008 mvn_settings_xml_version:
afenner29099642020-08-28 16:09:31 +01009 mvn_params:
robert.tomczykc75d04b2020-11-09 13:28:21 +000010 mvn_version: 3.5.4
afennera6c9eaa2020-10-21 17:04:50 +010011 subdirectory:
robert.tomczyke53f0092019-06-05 12:03:09 +010012 properties:
13 - logrotate
14
15 parameters:
afenner49aae692019-08-16 14:50:42 +010016 - project-parameters:
17 project: 'onap/{project}'
18 branch: '{branch}'
robert.tomczyke53f0092019-06-05 12:03:09 +010019 - nordix-gerrit-parameters
20 - string:
21 name: JAVA_HOME
robert.tomczyk08e50eb2020-08-11 16:53:28 +010022 default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
robert.tomczyke53f0092019-06-05 12:03:09 +010023 description: Java home
24 - string:
25 name: MVN_VERSION
robert.tomczykc75d04b2020-11-09 13:28:21 +000026 default: '{mvn_version}'
robert.tomczyke53f0092019-06-05 12:03:09 +010027 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
robert.tomczyk750a20f2020-08-18 11:08:43 +010036 - 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.
afenner29099642020-08-28 16:09:31 +010040 - string:
41 name: MVN_PARAMS
42 default: '{mvn_params}'
43 description: Maven build parameters
afennera6c9eaa2020-10-21 17:04:50 +010044 - 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
robert.tomczyke53f0092019-06-05 12:03:09 +010048 scm:
49 - git-scm-gerrit:
50 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
51 branch: '{branch}'
52 refspec: $GERRIT_REFSPEC
robert.tomczyk7e507872019-06-18 17:20:26 +010053 wipe_workspace: true
54 clean_before: false
robert.tomczyke53f0092019-06-05 12:03:09 +010055
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:
robert.tomczyk08e50eb2020-08-11 16:53:28 +010068 !include-raw-escape: ./verify-jobs.sh
andrew-estbed991f2021-06-22 15:23:46 +010069
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