summaryrefslogtreecommitdiff
path: root/jjb/yaml/openbook-database-pipeline.yaml
diff options
context:
space:
mode:
authorCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-10-10 12:17:09 -0600
committerCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-10-10 12:17:09 -0600
commit72a5c938d91fbcf7634eb553a6f4beee5cdbb368 (patch)
treecd6d5168688b018e498518e0749859d9a49f607b /jjb/yaml/openbook-database-pipeline.yaml
parent52e0c8de74ad0c064482a592a26c386ec6a3fd66 (diff)
database CI job
Diffstat (limited to 'jjb/yaml/openbook-database-pipeline.yaml')
-rw-r--r--jjb/yaml/openbook-database-pipeline.yaml88
1 files changed, 88 insertions, 0 deletions
diff --git a/jjb/yaml/openbook-database-pipeline.yaml b/jjb/yaml/openbook-database-pipeline.yaml
new file mode 100644
index 0000000..06d98c5
--- /dev/null
+++ b/jjb/yaml/openbook-database-pipeline.yaml
@@ -0,0 +1,88 @@
+---
+- job:
+ name: openbook-database-pipeline
+ project-type: pipeline
+ dsl: |
+ pipeline {
+ agent {
+ node {
+ label "master"
+ }
+ }
+ triggers {
+ pollSCM 'H/5 * * * *'
+ }
+ stages {
+ stage("docker-container") {
+ agent {
+ node {
+ label "openbook_v4"
+ customWorkspace "workspace/openbook-database"
+ }
+ }
+ steps {
+ checkout([
+ scm: [
+ $class: "GitSCM",
+ branches: [
+ [name: "master"]
+ ],
+ userRemoteConfigs: [
+ [url: "git@github.com:Talligent/openbook-v4-ci.git"]
+ ],
+ poll: false,
+ changelog: false
+ ]
+ ])
+ sh(script: "./build-docker-containers.sh database")
+ }
+ }
+ stage("fetch-ansible") {
+ agent {
+ node {
+ label "openbook_v4"
+ customWorkspace "workspace/openbook-v4-installer"
+ }
+ }
+ steps {
+ checkout([
+ scm: [
+ $class: "GitSCM",
+ branches: [
+ [name: "master"]
+ ],
+ userRemoteConfigs: [
+ [url: "git@github.com:Talligent/openbook-v4-installer.git"]
+ ],
+ poll: false,
+ changelog: false
+ ]
+ ])
+ }
+ }
+ stage("sql-script") {
+ agent {
+ node {
+ label "openbook_v4"
+ customWorkspace "workspace/openbook-database"
+ }
+ }
+ steps {
+ checkout([
+ scm: [
+ $class: "GitSCM",
+ branches: [
+ [name: "master"]
+ ],
+ userRemoteConfigs: [
+ [url: "git@github.com:Talligent/openbook-database.git"]
+ ],
+ poll: true,
+ changelog: false
+ ]
+ ])
+ sh(script: "./run-ansible-playbook.sh")
+ }
+ }
+ }
+ }