Adding aio job for multicloud 03/88103/4
authorMichal Ptacek <m.ptacek@partner.samsung.com>
Mon, 20 May 2019 18:25:56 +0000 (18:25 +0000)
committerMichal Ptacek <m.ptacek@partner.samsung.com>
Wed, 29 May 2019 10:30:46 +0000 (10:30 +0000)
This basic job is triggering All-in-One k8s deployment
for k8s PoC.

Change-Id: I6afff0c0d073dfbbb9e37e0f0b81e28c706db6be
Issue-ID: MULTICLOUD-635
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
jjb/global-templates-c.yaml
jjb/multicloud/kud-deployment.sh [new file with mode: 0644]
jjb/multicloud/multicloud-k8s-kud-deployment.yaml [new file with mode: 0644]

index 40c5170..50952b3 100644 (file)
     publishers:
       - lf-infra-publish
 
-#################
-# JOB TEMPLATES #
-#################
-
 - job-template:
     #
     # job template for build C/C++ project
           settings-file: '{mvn-settings}'
       - docker-login
       - shell: '{script}'
+
+- job-template:
+    #
+    # job template for build project executed every 6hrs
+    #
+    # Required Variables:
+    #   script:         build script to execute
+    name: '{name}-{stream}-shell-6hrs'
+    node: '{build-node}'
+    type: freestyle
+
+    triggers:
+      - timed: '00 */6 * * *'
+
+    builders:
+      - shell: '{script}'
+
+    publishers:
+      - lf-infra-publish
diff --git a/jjb/multicloud/kud-deployment.sh b/jjb/multicloud/kud-deployment.sh
new file mode 100644 (file)
index 0000000..c720098
--- /dev/null
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+# setting-up bash flags
+set -x -e -o pipefail
+
+# run all-in-one deployment
+cd ./kud/ci
+sudo bash -x ./ci-kud-installer.sh
diff --git a/jjb/multicloud/multicloud-k8s-kud-deployment.yaml b/jjb/multicloud/multicloud-k8s-kud-deployment.yaml
new file mode 100644 (file)
index 0000000..d533464
--- /dev/null
@@ -0,0 +1,15 @@
+---
+- project:
+    name: multicloud-k8s-kud-deployment
+    project: 'multicloud/k8s'
+    build-node: ubuntu1604-builder-4c-4g
+    kud_build_script: !include-raw-escape: kud-deployment.sh
+
+    stream:
+      - 'master':
+          branch: 'master'
+
+    jobs:
+      - '{name}-{stream}-shell-6hrs':
+          script: '{kud_build_script}'
+