GEODE: Nordix CI pipeline for geode-native client
[infra/cicd.git] / jjb / geode-native / global-template-apache-geode-native-test.yaml
diff --git a/jjb/geode-native/global-template-apache-geode-native-test.yaml b/jjb/geode-native/global-template-apache-geode-native-test.yaml
new file mode 100644 (file)
index 0000000..2d4f434
--- /dev/null
@@ -0,0 +1,70 @@
+---
+#
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2018-2019 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=========================================================
+- job-template:
+    name: 'apache-geode-native-{test-type}'
+
+    node: geode-sles15
+    disabled: false
+    concurrent: true
+
+    properties:
+      - logrotate
+      - github:
+          url: 'https://github.com/Nordix/geode-native.git/'
+
+    parameters:
+      - string:
+          name: PROJECT
+          default: 'Nordix/geode-native'
+          description: JJB configured PROJECT parameter to identify a Nordix GitHub project
+      - string:
+          name: BRANCH
+          default: 'release-nordix/1.10.0'
+          description: JJB configured BRANCH parameter for Nordix GitHub project
+      - string:
+          name: JOBS
+          default: '6'
+          description: JJB configured JOBS parameter. Specifies the number of make jobs to run simultaneously while building geode-native
+      - string:
+          name: GEODE_NATIVE_DOCKER_IMAGE
+          default: 'apachegeode/geode-native-build'
+          description: JJB configured name of the geode-native build docker image based on Ubuntu 18.04
+
+    scm:
+      - git-scm-github:
+          branch: '$BRANCH'
+          refspec: ''
+          wipe_workspace: true
+          clean_before: false
+          base_dir: 'geode-native'
+
+    builders:
+      - '{build-executor}'
+
+    publishers:
+      - workspace-cleanup:
+          clean-if:
+            - failure: false
+#      - notify-slack:
+#          slack-channel: '#geode'
+#          notify-start: true
+#          notify-success: true
+#          notify-failure: true
+#          notify-back-to-normal: true