blob: baf5e3769c97eccd0243345a40e8ba59d3e67e64 [file] [log] [blame]
robert.tomczyk2c6e3082020-02-20 12:15:07 +00001---
2# This is a separate java verify template for the local ONAP repositories
afenner29099642020-08-28 16:09:31 +01003# that are not push to ONAP upstream.
robert.tomczyk2c6e3082020-02-20 12:15:07 +00004- job-template:
5 name: 'local-onap-{project-name}-{stream}-verify-java'
robert.tomczyk19d1ad12020-03-23 16:35:32 +00006 disabled_job_var: false
robert.tomczyk08e50eb2020-08-11 16:53:28 +01007 node: onap-ubuntu1804
robert.tomczyk2c6e3082020-02-20 12:15:07 +00008
robert.tomczyk19d1ad12020-03-23 16:35:32 +00009 disabled: '{obj:disabled_job_var}'
10 concurrent: true
robert.tomczyk750a20f2020-08-18 11:08:43 +010011 mvn_settings_xml_version:
afenner29099642020-08-28 16:09:31 +010012 mvn_params:
robert.tomczykc75d04b2020-11-09 13:28:21 +000013 mvn_version: 3.5.4
robert.tomczyk2c6e3082020-02-20 12:15:07 +000014 properties:
15 - logrotate
16
robert.tomczyk2c6e3082020-02-20 12:15:07 +000017 parameters:
18 - project-parameters:
19 project: 'local/onap/{project}'
20 branch: '{branch}'
21 - nordix-gerrit-parameters
robert.tomczyk2c6e3082020-02-20 12:15:07 +000022 - string:
23 name: JAVA_HOME
robert.tomczyk08e50eb2020-08-11 16:53:28 +010024 default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
robert.tomczyk2c6e3082020-02-20 12:15:07 +000025 description: Java home
26 - string:
27 name: MVN_VERSION
robert.tomczykc75d04b2020-11-09 13:28:21 +000028 default: '{mvn_version}'
robert.tomczyk2c6e3082020-02-20 12:15:07 +000029 description: Maven version
30 - string:
31 name: MVN_URL
32 default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
33 description: URL to download Maven
34 - string:
35 name: MVN
36 default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
37 description: Path to mvn executable
robert.tomczyk750a20f2020-08-18 11:08:43 +010038 - string:
39 name: MVN_SETTINGS_XML_VERSION
40 default: '{mvn_settings_xml_version}'
41 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 +010042 - string:
43 name: MVN_PARAMS
44 default: '{mvn_params}'
45 description: Maven build parameters
robert.tomczyk2c6e3082020-02-20 12:15:07 +000046 scm:
47 - git-scm-gerrit:
48 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
49 branch: '{branch}'
50 refspec: $GERRIT_REFSPEC
51 wipe_workspace: true
52 clean_before: false
53
54 triggers:
55 - nordix-gerrit-trigger-patchset-created:
56 project: 'local/onap/{project}'
57 branch: '{branch}'
58 files: '**'
59
60 wrappers:
61 - build-timeout:
62 timeout: 45
63
64 builders:
65 - shell:
robert.tomczyk08e50eb2020-08-11 16:53:28 +010066 !include-raw-escape: ./verify-jobs.sh