X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Fonap%2Fglobal-templates-onap-java.yaml;h=49254f2202e8aad82618aaf61258bc3b72ecbcda;hb=3c92f18f48b4ab75710ff0b954d47c494438885b;hp=5f79175d3d0496016821e5cf78f49755d5502568;hpb=e53f009e429bb4c792a1920f2c5ff71742f52250;p=infra%2Fcicd.git diff --git a/jjb/onap/global-templates-onap-java.yaml b/jjb/onap/global-templates-onap-java.yaml index 5f79175d..49254f22 100644 --- a/jjb/onap/global-templates-onap-java.yaml +++ b/jjb/onap/global-templates-onap-java.yaml @@ -1,12 +1,13 @@ - 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: + subdirectory: properties: - logrotate @@ -17,11 +18,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: 3.5.4 description: Maven version - string: name: MVN_URL @@ -31,12 +32,25 @@ 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 branch: '{branch}' refspec: $GERRIT_REFSPEC + wipe_workspace: true + clean_before: false triggers: - nordix-gerrit-trigger-patchset-created: @@ -50,4 +64,4 @@ builders: - shell: - !include-raw-escape: ../global/verify-jobs.sh + !include-raw-escape: ./verify-jobs.sh