summaryrefslogtreecommitdiffstats
path: root/jjb/oom/include-yaml-check.sh
diff options
context:
space:
mode:
authorMichal Ptacek <m.ptacek@partner.samsung.com>2019-03-15 14:05:49 +0000
committerMichal Ptacek <m.ptacek@partner.samsung.com>2019-03-21 13:58:34 +0000
commitb1d16267ed6be699df53173348d510a3f19145d0 (patch)
tree69290822d8076f4cb807b3ef83d3be6d5b93da27 /jjb/oom/include-yaml-check.sh
parentcbeb97aa120c8a7418f279057a703399fa1ab0fc (diff)
First experimental job for offline deployments
This job is just basic yaml lint check for offline installer ansible playbooks. It should fail unless all warnings are fixed in ansible code. Issue-ID: OOM-1707 Change-Id: Ib65023e51d176855b35d470513edb26c40a22e59 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
Diffstat (limited to 'jjb/oom/include-yaml-check.sh')
-rwxr-xr-xjjb/oom/include-yaml-check.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/jjb/oom/include-yaml-check.sh b/jjb/oom/include-yaml-check.sh
new file mode 100755
index 000000000..27359e597
--- /dev/null
+++ b/jjb/oom/include-yaml-check.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+# setting-up bash flags
+set -x -e -o pipefail
+
+# remove old ansible - current centos build minion
+# is quite old and using incompatible ansible 2.4.x
+sudo yum -y remove ansible
+sudo pip install ansible ansible-lint
+
+# perform check
+ansible --version
+ansible-lint --version
+ansible-lint ./ansible/site.yml -vvv