summaryrefslogtreecommitdiff
path: root/jjb
diff options
context:
space:
mode:
Diffstat (limited to 'jjb')
-rw-r--r--jjb/yaml/openbook-database-pipeline.yaml88
-rw-r--r--jjb/yaml/openbook-pipeline.yaml2
2 files changed, 89 insertions, 1 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")
+ }
+ }
+ }
+ }
diff --git a/jjb/yaml/openbook-pipeline.yaml b/jjb/yaml/openbook-pipeline.yaml
index a1e0ae8..0c5f490 100644
--- a/jjb/yaml/openbook-pipeline.yaml
+++ b/jjb/yaml/openbook-pipeline.yaml
@@ -64,7 +64,7 @@
sh(script: "ruby openbook/ruby/upload_jar.rb --webdav-url=${{WEBDAV_URL}} --webdav-username=${{WEBDAV_USERNAME}} --webdav-password=${{WEBDAV_PASSWORD}} --artifact={artifact} --version=4.1.${{BUILD_NUMBER}} --filepath=build/libs/{artifact}.4.1.${{BUILD_NUMBER}}.jar")
}}
}}
- stage("docker-containers") {{
+ stage("docker-container") {{
steps {{
checkout([
scm: [