From de6ec2efd6b9ca676b2babdbb5dc98ed8f7d9ef0 Mon Sep 17 00:00:00 2001 From: Carlos Konstanski Date: Tue, 10 Oct 2017 17:54:32 -0600 Subject: many things --- jjb/yaml/deploy-dev-env.yaml | 2 - jjb/yaml/openbook-all-pipeline.yaml | 72 ++++++++++++++++++++++++++ jjb/yaml/openbook-all.yaml | 67 ------------------------ jjb/yaml/openbook-core-pipeline.yaml | 60 ++++++++++++++++++++++ jjb/yaml/openbook-core.yaml | 60 ---------------------- jjb/yaml/openbook-database-pipeline.yaml | 88 -------------------------------- jjb/yaml/openbook-database.yaml | 21 ++++++++ 7 files changed, 153 insertions(+), 217 deletions(-) create mode 100644 jjb/yaml/openbook-all-pipeline.yaml delete mode 100644 jjb/yaml/openbook-all.yaml create mode 100644 jjb/yaml/openbook-core-pipeline.yaml delete mode 100644 jjb/yaml/openbook-core.yaml delete mode 100644 jjb/yaml/openbook-database-pipeline.yaml create mode 100644 jjb/yaml/openbook-database.yaml (limited to 'jjb') diff --git a/jjb/yaml/deploy-dev-env.yaml b/jjb/yaml/deploy-dev-env.yaml index 9c6d704..36f1425 100644 --- a/jjb/yaml/deploy-dev-env.yaml +++ b/jjb/yaml/deploy-dev-env.yaml @@ -17,8 +17,6 @@ - "customer-web-ui-pipeline" - "job-scheduler-server-pipeline" - "workflow-server-pipeline" - - "openbook-core-pipeline" - - "openbook-all-pipeline" scm: - git: url: git@github.com:Talligent/openbook-v4-installer.git diff --git a/jjb/yaml/openbook-all-pipeline.yaml b/jjb/yaml/openbook-all-pipeline.yaml new file mode 100644 index 0000000..c5e3283 --- /dev/null +++ b/jjb/yaml/openbook-all-pipeline.yaml @@ -0,0 +1,72 @@ +--- +- job: + name: openbook-all-pipeline + project-type: pipeline + dsl: | + pipeline { + agent { + node { + label "master" + } + } + stages { + stage("checkout") { + agent { + node { + label "openbook_v4" + customWorkspace "workspace/openbook-all" + } + } + steps { + checkout([ + scm: [ + $class: "GitSCM", + branches: [ + [name: "master"] + ], + userRemoteConfigs: [ + [url: "git@github.com:Talligent/openbook-core.git"] + ], + poll: false, + changelog: false + ] + ]) + } + } + stage("database") { + steps { + build(job: "openbook-database") + } + } + stage("admin-api-server") { + steps { + build(job: "admin-api-server-pipeline") + } + } + stage("customer-api-server") { + steps { + build(job: "customer-api-server-pipeline") + } + } + stage("admin-web-ui") { + steps { + build(job: "admin-web-ui-pipeline") + } + } + stage("customer-web-ui") { + steps { + build(job: "customer-web-ui-pipeline") + } + } + stage("job-scheduler-server") { + steps { + build(job: "job-scheduler-server-pipeline") + } + } + stage("workflow-server") { + steps { + build(job: "workflow-server-pipeline") + } + } + } + } diff --git a/jjb/yaml/openbook-all.yaml b/jjb/yaml/openbook-all.yaml deleted file mode 100644 index eb74abf..0000000 --- a/jjb/yaml/openbook-all.yaml +++ /dev/null @@ -1,67 +0,0 @@ ---- -- job: - name: openbook-all-pipeline - project-type: pipeline - dsl: | - pipeline { - agent { - node { - label "master" - } - } - stages { - stage("checkout") { - agent { - node { - label "openbook_v4" - customWorkspace "workspace/openbook-all" - } - } - steps { - checkout([ - scm: [ - $class: "GitSCM", - branches: [ - [name: "master"] - ], - userRemoteConfigs: [ - [url: "git@github.com:Talligent/openbook-core.git"] - ], - poll: true, - changelog: false - ] - ]) - } - } - stage("admin-api-server") { - steps { - build(job: "admin-api-server-pipeline") - } - } - stage("customer-api-server") { - steps { - build(job: "customer-api-server-pipeline") - } - } - stage("admin-web-ui") { - steps { - build(job: "admin-web-ui-pipeline") - } - } - stage("customer-web-ui") { - steps { - build(job: "customer-web-ui-pipeline") - } - } - stage("job-scheduler-server") { - steps { - build(job: "job-scheduler-server-pipeline") - } - } - stage("workflow-server") { - steps { - build(job: "workflow-server-pipeline") - } - } - } - } diff --git a/jjb/yaml/openbook-core-pipeline.yaml b/jjb/yaml/openbook-core-pipeline.yaml new file mode 100644 index 0000000..7a06acf --- /dev/null +++ b/jjb/yaml/openbook-core-pipeline.yaml @@ -0,0 +1,60 @@ +--- +- job: + name: openbook-core-pipeline + project-type: pipeline + dsl: | + pipeline { + agent { + node { + label "master" + } + } + triggers { + pollSCM 'H/5 * * * *' + } + stages { + stage("checkout") { + agent { + node { + label "openbook_v4" + customWorkspace "workspace/openbook-core" + } + } + steps { + checkout([ + scm: [ + $class: "GitSCM", + branches: [ + [name: "master"] + ], + userRemoteConfigs: [ + [url: "git@github.com:Talligent/openbook-core.git"] + ], + poll: true, + changelog: false + ] + ]) + } + } + stage("admin-api-server") { + steps { + build(job: "admin-api-server-pipeline") + } + } + stage("customer-api-server") { + steps { + build(job: "customer-api-server-pipeline") + } + } + stage("job-scheduler-server") { + steps { + build(job: "job-scheduler-server-pipeline") + } + } + stage("workflow-server") { + steps { + build(job: "workflow-server-pipeline") + } + } + } + } diff --git a/jjb/yaml/openbook-core.yaml b/jjb/yaml/openbook-core.yaml deleted file mode 100644 index 7a06acf..0000000 --- a/jjb/yaml/openbook-core.yaml +++ /dev/null @@ -1,60 +0,0 @@ ---- -- job: - name: openbook-core-pipeline - project-type: pipeline - dsl: | - pipeline { - agent { - node { - label "master" - } - } - triggers { - pollSCM 'H/5 * * * *' - } - stages { - stage("checkout") { - agent { - node { - label "openbook_v4" - customWorkspace "workspace/openbook-core" - } - } - steps { - checkout([ - scm: [ - $class: "GitSCM", - branches: [ - [name: "master"] - ], - userRemoteConfigs: [ - [url: "git@github.com:Talligent/openbook-core.git"] - ], - poll: true, - changelog: false - ] - ]) - } - } - stage("admin-api-server") { - steps { - build(job: "admin-api-server-pipeline") - } - } - stage("customer-api-server") { - steps { - build(job: "customer-api-server-pipeline") - } - } - stage("job-scheduler-server") { - steps { - build(job: "job-scheduler-server-pipeline") - } - } - stage("workflow-server") { - steps { - build(job: "workflow-server-pipeline") - } - } - } - } diff --git a/jjb/yaml/openbook-database-pipeline.yaml b/jjb/yaml/openbook-database-pipeline.yaml deleted file mode 100644 index 06d98c5..0000000 --- a/jjb/yaml/openbook-database-pipeline.yaml +++ /dev/null @@ -1,88 +0,0 @@ ---- -- 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-database.yaml b/jjb/yaml/openbook-database.yaml new file mode 100644 index 0000000..7482ed1 --- /dev/null +++ b/jjb/yaml/openbook-database.yaml @@ -0,0 +1,21 @@ +--- +- job: + name: openbook-database + project-type: freestyle + node: openbook_v4 + properties: + - build-discarder: + days-to-keep: 0 + num-to-keep: 1 + artifact-days-to-keep: 0 + triggers: + - pollscm: + cron: 'H/5 * * * *' + scm: + - git: + url: git@github.com:Talligent/openbook-v4-ci.git + branches: + - master + builders: + - shell: | + ./build-docker-containers.sh database -- cgit v1.3