robert.tomczyk | e53f009 | 2019-06-05 12:03:09 +0100 | [diff] [blame] | 1 | - job-template: |
| 2 | name: 'onap-{project-name}-{stream}-verify-java' |
robert.tomczyk | 19d1ad1 | 2020-03-23 16:35:32 +0000 | [diff] [blame] | 3 | disabled_job_var: false |
robert.tomczyk | 08e50eb | 2020-08-11 16:53:28 +0100 | [diff] [blame] | 4 | node: onap-ubuntu1804 |
robert.tomczyk | e53f009 | 2019-06-05 12:03:09 +0100 | [diff] [blame] | 5 | |
robert.tomczyk | 19d1ad1 | 2020-03-23 16:35:32 +0000 | [diff] [blame] | 6 | disabled: '{obj:disabled_job_var}' |
robert.tomczyk | e53f009 | 2019-06-05 12:03:09 +0100 | [diff] [blame] | 7 | concurrent: true |
robert.tomczyk | 750a20f | 2020-08-18 11:08:43 +0100 | [diff] [blame] | 8 | mvn_settings_xml_version: |
afenner | 2909964 | 2020-08-28 16:09:31 +0100 | [diff] [blame] | 9 | mvn_params: |
robert.tomczyk | c75d04b | 2020-11-09 13:28:21 +0000 | [diff] [blame] | 10 | mvn_version: 3.5.4 |
afenner | a6c9eaa | 2020-10-21 17:04:50 +0100 | [diff] [blame] | 11 | subdirectory: |
robert.tomczyk | e53f009 | 2019-06-05 12:03:09 +0100 | [diff] [blame] | 12 | properties: |
| 13 | - logrotate |
| 14 | |
| 15 | parameters: |
afenner | 49aae69 | 2019-08-16 14:50:42 +0100 | [diff] [blame] | 16 | - project-parameters: |
| 17 | project: 'onap/{project}' |
| 18 | branch: '{branch}' |
robert.tomczyk | e53f009 | 2019-06-05 12:03:09 +0100 | [diff] [blame] | 19 | - nordix-gerrit-parameters |
| 20 | - string: |
| 21 | name: JAVA_HOME |
robert.tomczyk | 08e50eb | 2020-08-11 16:53:28 +0100 | [diff] [blame] | 22 | default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64' |
robert.tomczyk | e53f009 | 2019-06-05 12:03:09 +0100 | [diff] [blame] | 23 | description: Java home |
| 24 | - string: |
| 25 | name: MVN_VERSION |
robert.tomczyk | c75d04b | 2020-11-09 13:28:21 +0000 | [diff] [blame] | 26 | default: '{mvn_version}' |
robert.tomczyk | e53f009 | 2019-06-05 12:03:09 +0100 | [diff] [blame] | 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 |
robert.tomczyk | 750a20f | 2020-08-18 11:08:43 +0100 | [diff] [blame] | 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. |
afenner | 2909964 | 2020-08-28 16:09:31 +0100 | [diff] [blame] | 40 | - string: |
| 41 | name: MVN_PARAMS |
| 42 | default: '{mvn_params}' |
| 43 | description: Maven build parameters |
afenner | a6c9eaa | 2020-10-21 17:04:50 +0100 | [diff] [blame] | 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 |
robert.tomczyk | e53f009 | 2019-06-05 12:03:09 +0100 | [diff] [blame] | 48 | scm: |
| 49 | - git-scm-gerrit: |
| 50 | ssh-credentials-id: nordixinfra-nordix-gerrit-ssh |
| 51 | branch: '{branch}' |
| 52 | refspec: $GERRIT_REFSPEC |
robert.tomczyk | 7e50787 | 2019-06-18 17:20:26 +0100 | [diff] [blame] | 53 | wipe_workspace: true |
| 54 | clean_before: false |
robert.tomczyk | e53f009 | 2019-06-05 12:03:09 +0100 | [diff] [blame] | 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: |
robert.tomczyk | 08e50eb | 2020-08-11 16:53:28 +0100 | [diff] [blame] | 68 | !include-raw-escape: ./verify-jobs.sh |
andrew-est | bed991f | 2021-06-22 15:23:46 +0100 | [diff] [blame] | 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 |