X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Foransc%2Fglobal-templates-oran-java.yaml;h=0a21b6bb885b30799327b8cac4e6bd401712190b;hb=HEAD;hp=8a0fa35f1e525c2d897ca77996439415817850d2;hpb=8d2bf807b96faddd1e1069d1eb45b679494afd4e;p=infra%2Fcicd.git diff --git a/jjb/oransc/global-templates-oran-java.yaml b/jjb/oransc/global-templates-oran-java.yaml index 8a0fa35f1..0a21b6bb8 100644 --- a/jjb/oransc/global-templates-oran-java.yaml +++ b/jjb/oransc/global-templates-oran-java.yaml @@ -1,8 +1,11 @@ - job-template: name: 'oransc-{project-name}-verify-java' - node: oransc-ubuntu1804 + node: oransc-ubuntu2004 disabled: false concurrent: true + subdirectory: + trigger_branch_pattern: '**' + trigger_files_path_pattern: '**' properties: - logrotate @@ -29,7 +32,15 @@ name: MVN default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn description: Path to mvn executable - + - string: + name: GO_PATH + default: '/usr/local/go/bin' + description: Path to go executable + - string: + name: SUBDIRECTORY + default: '{subdirectory}' + description: Subdirectory of the project + scm: - git-scm-gerrit: ssh-credentials-id: nordixinfra-nordix-gerrit-ssh @@ -41,8 +52,74 @@ triggers: - nordix-gerrit-trigger-patchset-created: project: 'oransc/{project}' - branch: '**' - files: '**' + branch: '{trigger_branch_pattern}' + files: '{trigger_files_path_pattern}' + + wrappers: + - build-timeout: + timeout: 45 + + builders: + - shell: + !include-raw-escape: ./verify-jobs.sh + + +- job-template: + name: 'ties-{project-name}-verify-java' + node: oransc-ubuntu2004 + disabled: false + concurrent: true + subdirectory: + trigger_branch_pattern: '**' + trigger_files_path_pattern: '**' + + properties: + - logrotate + + parameters: + - nordix-gerrit-parameters + - string: + name: PROJECT + default: '{project}' + description: JJB configured PROJECT parameter to identify a Nordix Gerrit project + - string: + name: JAVA_HOME + default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64' + description: Java home + - string: + name: MVN_VERSION + default: 3.6.2 + description: Maven version + - string: + name: MVN_URL + default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/${{MVN_VERSION}}/apache-maven-${{MVN_VERSION}}-bin.zip + description: URL to download Maven + - string: + name: MVN + default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn + description: Path to mvn executable + - string: + name: GO_PATH + default: '/usr/local/go/bin' + description: Path to go executable + - string: + name: SUBDIRECTORY + default: '{subdirectory}' + description: Subdirectory of the project + + scm: + - git-scm-gerrit: + ssh-credentials-id: nordixinfra-nordix-gerrit-ssh + branch: $GERRIT_BRANCH + refspec: $GERRIT_REFSPEC + wipe_workspace: true + clean_before: false + + triggers: + - nordix-gerrit-trigger-patchset-created: + project: '{project}' + branch: '{trigger_branch_pattern}' + files: '{trigger_files_path_pattern}' wrappers: - build-timeout: