X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Fonap%2Fglobal-templates-onap-java.yaml;h=6c874e75cc2cb3bd75f3ac3aab7cbd6d7402a872;hb=bed991f0e923d4b8efbc91e9bef43cdd5f2802fa;hp=0b522b58201e285dcb219be052ae6a4265b07729;hpb=7e507875f63896df2bfd2e3efe33da2a9521f6ad;p=infra%2Fcicd.git diff --git a/jjb/onap/global-templates-onap-java.yaml b/jjb/onap/global-templates-onap-java.yaml index 0b522b58..6c874e75 100644 --- a/jjb/onap/global-templates-onap-java.yaml +++ b/jjb/onap/global-templates-onap-java.yaml @@ -1,12 +1,14 @@ - job-template: name: 'onap-{project-name}-{stream}-verify-java' + disabled_job_var: false + node: onap-ubuntu1804 - node: onap-ubuntu1604 - - disabled: false - + disabled: '{obj:disabled_job_var}' concurrent: true - + mvn_settings_xml_version: + mvn_params: + mvn_version: 3.5.4 + subdirectory: properties: - logrotate @@ -17,11 +19,11 @@ - nordix-gerrit-parameters - string: name: JAVA_HOME - default: /usr/lib/jvm/java-1.8.0-openjdk-amd64 + default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64' description: Java home - string: name: MVN_VERSION - default: 3.3.9 + default: '{mvn_version}' description: Maven version - string: name: MVN_URL @@ -31,7 +33,18 @@ name: MVN default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn description: Path to mvn executable - + - string: + name: MVN_SETTINGS_XML_VERSION + default: '{mvn_settings_xml_version}' + 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. + - string: + name: MVN_PARAMS + default: '{mvn_params}' + description: Maven build parameters + - string: + name: SUBDIRECTORY + default: '{subdirectory}' + description: Subdirectory of the workspace for which the pom.xml will be called. This allows the verify to be called against a specific directory scm: - git-scm-gerrit: ssh-credentials-id: nordixinfra-nordix-gerrit-ssh @@ -52,4 +65,51 @@ builders: - shell: - !include-raw-escape: ../global/verify-jobs.sh + !include-raw-escape: ./verify-jobs.sh + +# csits for diferent projects are different so need to have special handling +- job-template: + name: 'onap-policy-docker-{stream}-csit-java' + disabled_job_var: false + node: onap-ubuntu1804 + + disabled: '{obj:disabled_job_var}' + concurrent: true + properties: + - logrotate + + parameters: + - project-parameters: + project: 'onap/{project}' + branch: '{branch}' + - nordix-gerrit-parameters + - string: + name: JAVA_HOME + default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64' + description: Java home + - string: + name: CSIT_TEST_NAMES + default: '{csit_test_names}' + description: The name of the csits test to run + scm: + - git-scm-gerrit: + ssh-credentials-id: nordixinfra-nordix-gerrit-ssh + branch: 'master' + refspec: $GERRIT_REFSPEC + wipe_workspace: true + clean_before: false + + triggers: + - nordix-gerrit-trigger-patchset-created: + project: 'onap/{project}' + branch: '{branch}' + files: '**' + + wrappers: + - build-timeout: + timeout: 45 + + builders: + - 'wait-pkg-mgr-macro' + - shell: + !include-raw-escape: ./policy-docker-csit-jobs.sh