Adding aio job for multicloud
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>
diff --git a/jjb/global-templates-c.yaml b/jjb/global-templates-c.yaml
index 40c5170..50952b3 100644
--- a/jjb/global-templates-c.yaml
+++ b/jjb/global-templates-c.yaml
@@ -52,10 +52,6 @@
publishers:
- lf-infra-publish
-#################
-# JOB TEMPLATES #
-#################
-
- job-template:
#
# job template for build C/C++ project
@@ -105,3 +101,22 @@
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
index 0000000..c720098
--- /dev/null
+++ b/jjb/multicloud/kud-deployment.sh
@@ -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
index 0000000..d533464
--- /dev/null
+++ b/jjb/multicloud/multicloud-k8s-kud-deployment.yaml
@@ -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}'
+