summaryrefslogtreecommitdiff
path: root/jjb
diff options
context:
space:
mode:
authorCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-09-27 12:29:16 -0600
committerCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-09-27 12:29:16 -0600
commit698926e352294bd167cfe158a71689c8606bce7b (patch)
tree71d30a06af185d970101ebd52e40c5938469c895 /jjb
parentdee90ffc700882369589dc3078abbf81e0bb5927 (diff)
putting jjb tree in here
Diffstat (limited to 'jjb')
-rw-r--r--jjb/.gitignore2
-rw-r--r--jjb/example.ini13
-rwxr-xr-xjjb/run.sh4
-rw-r--r--jjb/yaml/build-docker-containers.yaml23
4 files changed, 42 insertions, 0 deletions
diff --git a/jjb/.gitignore b/jjb/.gitignore
new file mode 100644
index 0000000..cfe5767
--- /dev/null
+++ b/jjb/.gitignore
@@ -0,0 +1,2 @@
+pippiandcarlos.com.ini
+verizoncloudplatform.com.ini
diff --git a/jjb/example.ini b/jjb/example.ini
new file mode 100644
index 0000000..d87a962
--- /dev/null
+++ b/jjb/example.ini
@@ -0,0 +1,13 @@
+[job_builder]
+ignore_cache=True
+keep_descriptions=False
+include_path=.:scripts:~/git/
+recursive=False
+exclude=.*:manual:./development
+allow_duplicates=False
+
+[jenkins]
+user=my_username
+password=my_jenkins_api_key
+url=http://jenkins.tld/
+query_plugins_info=False
diff --git a/jjb/run.sh b/jjb/run.sh
new file mode 100755
index 0000000..b99ff84
--- /dev/null
+++ b/jjb/run.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+ini="${1}"
+jenkins-jobs --conf "${ini}" update --delete-old yaml/
diff --git a/jjb/yaml/build-docker-containers.yaml b/jjb/yaml/build-docker-containers.yaml
new file mode 100644
index 0000000..c005bbd
--- /dev/null
+++ b/jjb/yaml/build-docker-containers.yaml
@@ -0,0 +1,23 @@
+---
+- job:
+ name: build-docker-container
+ display-name: "build-docker-container"
+ project-type: freestyle
+ description: "Runs the saltstack which generates the docker build scripts and ansible playbook installers. Runs the docker build scripts. Pushes the ansible playbooks to git."
+ node: openbook_v4
+ properties:
+ - build-discarder:
+ days-to-keep: 0
+ num-to-keep: 1
+ artifact-days-to-keep: 0
+ artifact-num-to-keep: 0
+ triggers:
+ - timed: "H 0 * * *"
+ scm:
+ - git:
+ url: git@github.com:Talligent/openbook-v4-ci.git
+ branches:
+ - master
+ builders:
+ - shell: |
+ ./build-docker-containers.sh