summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2019-03-21 17:44:55 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-21 17:44:55 +0000
commit524312cf0136d471daa4476b80a6c389f844ee88 (patch)
tree023a4250da57edbc6c350cd4ab20344ada6a1a61
parent84a5730b7082315fccd8e80368610240e97e36fb (diff)
parentb1d16267ed6be699df53173348d510a3f19145d0 (diff)
Merge "First experimental job for offline deployments"
-rwxr-xr-xjjb/oom/include-yaml-check.sh14
-rw-r--r--jjb/oom/offline-installer.yaml14
-rw-r--r--jjb/oom/oom-jobs.yaml34
3 files changed, 62 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
diff --git a/jjb/oom/offline-installer.yaml b/jjb/oom/offline-installer.yaml
new file mode 100644
index 000000000..ca2f15fc9
--- /dev/null
+++ b/jjb/oom/offline-installer.yaml
@@ -0,0 +1,14 @@
+---
+- project:
+ name: offline-installer
+ project-name: 'offline-installer'
+ build-node: centos7-builder-2c-1g
+ offline_build_script: !include-raw-escape: include-yaml-check.sh
+
+ stream:
+ - 'master':
+ branch: 'master'
+
+ jobs:
+ - '{project-name}-{stream}-yaml-lint':
+ build_script: '{offline_build_script}'
diff --git a/jjb/oom/oom-jobs.yaml b/jjb/oom/oom-jobs.yaml
new file mode 100644
index 000000000..02eae3fe3
--- /dev/null
+++ b/jjb/oom/oom-jobs.yaml
@@ -0,0 +1,34 @@
+---
+- job-template:
+ name: '{project-name}-{stream}-yaml-lint'
+ node: '{build-node}'
+ type: freestyle
+ build_script: ''
+ pattern: '**'
+
+ parameters:
+ - lf-infra-parameters:
+ branch: '{branch}'
+ project: 'oom/{project-name}'
+ stream: '{stream}'
+ lftools-version: '{lftools-version}'
+
+ scm:
+ - gerrit-trigger-scm:
+ refspec: '$GERRIT_REFSPEC'
+ submodule-recursive: '{submodule-recursive}'
+ choosing-strategy: 'gerrit'
+
+ triggers:
+ - gerrit-trigger-patch-submitted:
+ server: '{server-name}'
+ project: 'oom/{project-name}'
+ branch: '{branch}'
+ files: '{obj:pattern}'
+
+ builders:
+ - shell: '{obj:build_script}'
+
+ publishers:
+ - lf-infra-publish
+