adding initial ties test 67/20667/1
authorafenner <Andrew.fenner@est.tech>
Wed, 28 Feb 2024 11:56:40 +0000 (11:56 +0000)
committerafenner <Andrew.fenner@est.tech>
Wed, 28 Feb 2024 11:56:57 +0000 (11:56 +0000)
Change-Id: I6b0ceeb5e05015865c0eaab2129be1a1b68aaf18
Signed-off-by: afenner <Andrew.fenner@est.tech>
jjb/oransc/global-templates-oran-java.yaml
jjb/oransc/ties/ties-verify-job.yaml [new file with mode: 0644]

index 97d45d63a5227cb2173f935861a69f9e067e6c83..98826cf223b055363807a52b1052ae7ba4d5d543 100644 (file)
     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: 'oransc/{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:
+          timeout: 45
+
+    builders:
+      - shell:
+          !include-raw-escape: ./verify-jobs.sh
diff --git a/jjb/oransc/ties/ties-verify-job.yaml b/jjb/oransc/ties/ties-verify-job.yaml
new file mode 100644 (file)
index 0000000..3df20b5
--- /dev/null
@@ -0,0 +1,30 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2024 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# this job gets triggered when a change is proposed to
+# topology-exposure-inventory project on Nordix Gerrit.
+
+- project:
+    name: topology-exposure-inventory-verify
+    project: topology-exposure-inventory
+    project-name: topology-exposure-inventory
+    jdk-version: java-17
+
+    jobs:
+      - 'ties-{project-name}-verify-java'
\ No newline at end of file