From f8ec26529bf36d1a8cce1c320308e31bd9cd797f Mon Sep 17 00:00:00 2001 From: Carlos Konstanski Date: Tue, 28 Nov 2017 14:18:16 -0700 Subject: rearranging files to support two remotes --- .../glance-gateway-if-pipeline.yaml | 37 ++++++ .../verizoncloudplatform.com/glance-gateway.yaml | 26 ++++ .../image-foundry-if-pipeline.yaml | 37 ++++++ .../verizoncloudplatform.com/image-foundry.yaml | 40 ++++++ jjb/yaml/verizoncloudplatform.com/ob-ctl.yaml | 65 ++++++++++ .../verizoncloudplatform.com/ob-deploy-branch.yaml | 43 +++++++ .../openbook-all-ob-pipeline.yaml | 75 ++++++++++++ .../openbook-baseimage.yaml | 20 +++ .../openbook-core-ob-pipeline.yaml | 55 +++++++++ .../openbook-database.yaml | 20 +++ .../openbook-ob-pipeline.yaml | 136 +++++++++++++++++++++ jjb/yaml/verizoncloudplatform.com/openbook.yaml | 67 ++++++++++ 12 files changed, 621 insertions(+) create mode 100644 jjb/yaml/verizoncloudplatform.com/glance-gateway-if-pipeline.yaml create mode 100644 jjb/yaml/verizoncloudplatform.com/glance-gateway.yaml create mode 100644 jjb/yaml/verizoncloudplatform.com/image-foundry-if-pipeline.yaml create mode 100644 jjb/yaml/verizoncloudplatform.com/image-foundry.yaml create mode 100644 jjb/yaml/verizoncloudplatform.com/ob-ctl.yaml create mode 100644 jjb/yaml/verizoncloudplatform.com/ob-deploy-branch.yaml create mode 100644 jjb/yaml/verizoncloudplatform.com/openbook-all-ob-pipeline.yaml create mode 100644 jjb/yaml/verizoncloudplatform.com/openbook-baseimage.yaml create mode 100644 jjb/yaml/verizoncloudplatform.com/openbook-core-ob-pipeline.yaml create mode 100644 jjb/yaml/verizoncloudplatform.com/openbook-database.yaml create mode 100644 jjb/yaml/verizoncloudplatform.com/openbook-ob-pipeline.yaml create mode 100644 jjb/yaml/verizoncloudplatform.com/openbook.yaml (limited to 'jjb/yaml/verizoncloudplatform.com') diff --git a/jjb/yaml/verizoncloudplatform.com/glance-gateway-if-pipeline.yaml b/jjb/yaml/verizoncloudplatform.com/glance-gateway-if-pipeline.yaml new file mode 100644 index 0000000..98ca417 --- /dev/null +++ b/jjb/yaml/verizoncloudplatform.com/glance-gateway-if-pipeline.yaml @@ -0,0 +1,37 @@ +--- +- job: + name: glance-gateway-gg-pipeline + project-type: pipeline + dsl: | + pipeline { + agent { + node { + label "master" + } + } + stages { + stage("checkout-manifests") { + agent { + node { + label "glance_gateway" + customWorkspace "workspace/glance-gateway" + } + } + steps { + git(poll: false, branch: "master", url: "git@github.vcp.vzwnet.com:konstca/glance-gateway.git") + } + } + stage("update-images") { + agent { + node { + label "glance_gateway" + customWorkspace "workspace/image-foundry" + } + } + steps { + git(poll: false, branch: "master", url: "git@github.vcp.vzwnet.com:konstca/image-foundry.git") + sh(script: "./glance-gateway.sh") + } + } + } + } diff --git a/jjb/yaml/verizoncloudplatform.com/glance-gateway.yaml b/jjb/yaml/verizoncloudplatform.com/glance-gateway.yaml new file mode 100644 index 0000000..f56ad24 --- /dev/null +++ b/jjb/yaml/verizoncloudplatform.com/glance-gateway.yaml @@ -0,0 +1,26 @@ +--- +- job: + name: "glance-gateway" + project-type: freestyle + node: image_foundry + properties: + - build-discarder: + days-to-keep: 0 + num-to-keep: 1 + - build-blocker: + use-build-blocker: true + blocking-jobs: + - ".*if-pipeline" + block_level: 'GLOBAL' + queue-scanning: 'BUILDABLE' + artifact-days-to-keep: 0 + triggers: + - github + scm: + - git: + url: "git@github.vcp.vzwnet.com:konstca/glance-gateway.git" + branches: + - "master" + builders: + - trigger-builds: + - project: "glance-gateway-gg-pipeline" diff --git a/jjb/yaml/verizoncloudplatform.com/image-foundry-if-pipeline.yaml b/jjb/yaml/verizoncloudplatform.com/image-foundry-if-pipeline.yaml new file mode 100644 index 0000000..119fca4 --- /dev/null +++ b/jjb/yaml/verizoncloudplatform.com/image-foundry-if-pipeline.yaml @@ -0,0 +1,37 @@ +--- +- job: + name: image-foundry-if-pipeline + project-type: pipeline + dsl: | + pipeline { + agent { + node { + label "master" + } + } + stages { + stage("checkout-elements") { + agent { + node { + label "glance_gateway" + customWorkspace "workspace/image-foundry-vzw" + } + } + steps { + git(poll: false, branch: "master", url: "git@github.vcp.vzwnet.com:konstca/image-foundry-vzw.git") + } + } + stage("diskimage-builder") { + agent { + node { + label "glance_gateway" + customWorkspace "workspace/image-foundry" + } + } + steps { + git(poll: false, branch: "master", url: "git@github.vcp.vzwnet.com:konstca/image-foundry.git") + sh(script: "./image-foundry.sh") + } + } + } + } diff --git a/jjb/yaml/verizoncloudplatform.com/image-foundry.yaml b/jjb/yaml/verizoncloudplatform.com/image-foundry.yaml new file mode 100644 index 0000000..db35f51 --- /dev/null +++ b/jjb/yaml/verizoncloudplatform.com/image-foundry.yaml @@ -0,0 +1,40 @@ +--- +- job: + name: "image-foundry" + project-type: freestyle + node: image_foundry + properties: + - build-discarder: + days-to-keep: 0 + num-to-keep: 1 + artifact-days-to-keep: 0 + triggers: + - github + scm: + - git: + url: "git@github.vcp.vzwnet.com:konstca/image-foundry.git" + branches: + - "master" + builders: + - trigger-builds: + - project: "image-foundry-if-pipeline" + +- job: + name: "image-foundry-vzw" + project-type: freestyle + node: image_foundry + properties: + - build-discarder: + days-to-keep: 0 + num-to-keep: 1 + artifact-days-to-keep: 0 + triggers: + - github + scm: + - git: + url: "git@github.vcp.vzwnet.com:konstca/image-foundry-vzw.git" + branches: + - "master" + builders: + - trigger-builds: + - project: "image-foundry-if-pipeline" diff --git a/jjb/yaml/verizoncloudplatform.com/ob-ctl.yaml b/jjb/yaml/verizoncloudplatform.com/ob-ctl.yaml new file mode 100644 index 0000000..b12ec55 --- /dev/null +++ b/jjb/yaml/verizoncloudplatform.com/ob-ctl.yaml @@ -0,0 +1,65 @@ +--- +- project: + name: "ob-ctl" + jobs: + - "ob-ctl-{action}-{branch}": + branch: "unstable" + action: "stop" + - "ob-ctl-{action}-{branch}": + branch: "unstable" + action: "start" + - "ob-ctl-{action}-{branch}": + branch: "unstable" + action: "restart" + - "ob-ctl-{action}-{branch}": + branch: "develop" + action: "stop" + - "ob-ctl-{action}-{branch}": + branch: "develop" + action: "start" + - "ob-ctl-{action}-{branch}": + branch: "develop" + action: "restart" + - "ob-ctl-{action}-{branch}": + branch: "stage" + action: "stop" + - "ob-ctl-{action}-{branch}": + branch: "stage" + action: "start" + - "ob-ctl-{action}-{branch}": + branch: "stage" + action: "restart" + - "ob-ctl-{action}-{branch}": + branch: "master" + action: "stop" + - "ob-ctl-{action}-{branch}": + branch: "master" + action: "start" + - "ob-ctl-{action}-{branch}": + branch: "master" + action: "restart" + +- job-template: + name: "ob-ctl-{action}-{branch}" + project-type: freestyle + node: openbook_v4 + properties: + - build-discarder: + days-to-keep: 0 + num-to-keep: 1 + artifact-days-to-keep: 0 + - build-blocker: + use-build-blocker: true + blocking-jobs: + - ".*ob-pipeline" + - "ob-deploy-branch.*" + block_level: 'GLOBAL' + queue-scanning: 'BUILDABLE' + scm: + - git: + url: git@github.vcp.vzwnet.com:konstca/openbook-v4-installer.git + branches: + - master + builders: + - shell: | + ./ob-ctl.sh {branch} {action} diff --git a/jjb/yaml/verizoncloudplatform.com/ob-deploy-branch.yaml b/jjb/yaml/verizoncloudplatform.com/ob-deploy-branch.yaml new file mode 100644 index 0000000..ef7c736 --- /dev/null +++ b/jjb/yaml/verizoncloudplatform.com/ob-deploy-branch.yaml @@ -0,0 +1,43 @@ +--- +- project: + name: "ob-deploy-branch" + branch: + - "unstable" + - "develop" + - "stage" + - "master" + jobs: + - "ob-deploy-branch-{branch}" + +- job-template: + name: "ob-deploy-branch-{branch}" + project-type: freestyle + node: openbook_v4 + properties: + - build-discarder: + days-to-keep: 0 + num-to-keep: 1 + artifact-days-to-keep: 0 + - build-blocker: + use-build-blocker: true + blocking-jobs: + - ".*ob-pipeline" + block_level: 'GLOBAL' + queue-scanning: 'BUILDABLE' + triggers: + - reverse: + jobs: + - "admin-api-server-{branch}-ob-pipeline" + - "admin-web-ui-{branch}-ob-pipeline" + - "customer-api-server-{branch}-ob-pipeline" + - "customer-web-ui-{branch}-ob-pipeline" + - "job-scheduler-server-{branch}-ob-pipeline" + - "workflow-server-{branch}-ob-pipeline" + scm: + - git: + url: git@github.vcp.vzwnet.com:konstca/openbook-v4-installer.git + branches: + - master + builders: + - shell: | + ./ob-deploy-branch.sh {branch} diff --git a/jjb/yaml/verizoncloudplatform.com/openbook-all-ob-pipeline.yaml b/jjb/yaml/verizoncloudplatform.com/openbook-all-ob-pipeline.yaml new file mode 100644 index 0000000..f81f8ab --- /dev/null +++ b/jjb/yaml/verizoncloudplatform.com/openbook-all-ob-pipeline.yaml @@ -0,0 +1,75 @@ +--- +- project: + name: "openbook-all-ob-pipeline" + branch: + - "unstable" + - "develop" + - "stage" + - "master" + jobs: + - "openbook-all-{branch}-ob-pipeline" + +- job-template: + name: "openbook-all-{branch}-ob-pipeline" + project-type: pipeline + dsl: | + pipeline {{ + agent {{ + node {{ + label "master" + }} + }} + stages {{ + stage("checkout") {{ + agent {{ + node {{ + label "openbook_v4" + customWorkspace "workspace/openbook-core" + }} + }} + steps {{ + git(poll: false, branch: "{branch}", url: "git@github.com:Talligent/openbook-core.git") + }} + }} + stage("baseimage") {{ + steps {{ + build(job: "openbook-baseimage") + }} + }} + stage("database") {{ + steps {{ + build(job: "openbook-database") + }} + }} + stage("admin-api-server") {{ + steps {{ + build(job: "admin-api-server-{branch}-ob-pipeline") + }} + }} + stage("customer-api-server") {{ + steps {{ + build(job: "customer-api-server-{branch}-ob-pipeline") + }} + }} + stage("admin-web-ui") {{ + steps {{ + build(job: "admin-web-ui-{branch}-ob-pipeline") + }} + }} + stage("customer-web-ui") {{ + steps {{ + build(job: "customer-web-ui-{branch}-ob-pipeline") + }} + }} + stage("job-scheduler-server") {{ + steps {{ + build(job: "job-scheduler-server-{branch}-ob-pipeline") + }} + }} + stage("workflow-server") {{ + steps {{ + build(job: "workflow-server-{branch}-ob-pipeline") + }} + }} + }} + }} diff --git a/jjb/yaml/verizoncloudplatform.com/openbook-baseimage.yaml b/jjb/yaml/verizoncloudplatform.com/openbook-baseimage.yaml new file mode 100644 index 0000000..d42cd60 --- /dev/null +++ b/jjb/yaml/verizoncloudplatform.com/openbook-baseimage.yaml @@ -0,0 +1,20 @@ +--- +- job: + name: openbook-baseimage + project-type: freestyle + node: openbook_v4 + properties: + - build-discarder: + days-to-keep: 0 + num-to-keep: 1 + artifact-days-to-keep: 0 + triggers: + - github + scm: + - git: + url: git@github.vcp.vzwnet.com:konstca/openbook-v4-ci.git + branches: + - master + builders: + - shell: | + ./build-docker-containers.sh baseimage unstable diff --git a/jjb/yaml/verizoncloudplatform.com/openbook-core-ob-pipeline.yaml b/jjb/yaml/verizoncloudplatform.com/openbook-core-ob-pipeline.yaml new file mode 100644 index 0000000..32669ab --- /dev/null +++ b/jjb/yaml/verizoncloudplatform.com/openbook-core-ob-pipeline.yaml @@ -0,0 +1,55 @@ +--- +- project: + name: "openbook-core-ob-pipeline" + branch: + - "unstable" + - "develop" + - "stage" + - "master" + jobs: + - "openbook-core-{branch}-ob-pipeline" + +- job-template: + name: "openbook-core-{branch}-ob-pipeline" + project-type: pipeline + dsl: | + pipeline {{ + agent {{ + node {{ + label "master" + }} + }} + stages {{ + stage("checkout") {{ + agent {{ + node {{ + label "openbook_v4" + customWorkspace "workspace/openbook-core" + }} + }} + steps {{ + git(poll: false, branch: "{branch}", url: "git@github.com:Talligent/openbook-core.git") + }} + }} + stage("admin-api-server") {{ + steps {{ + build(job: "admin-api-server-{branch}-ob-pipeline") + }} + }} + stage("customer-api-server") {{ + steps {{ + build(job: "customer-api-server-{branch}-ob-pipeline") + }} + }} + stage("job-scheduler-server") {{ + steps {{ + build(job: "job-scheduler-server-{branch}-ob-pipeline") + }} + }} + stage("workflow-server") {{ + steps {{ + build(job: "workflow-server-{branch}-ob-pipeline") + }} + }} + }} + }} diff --git a/jjb/yaml/verizoncloudplatform.com/openbook-database.yaml b/jjb/yaml/verizoncloudplatform.com/openbook-database.yaml new file mode 100644 index 0000000..dd5bcda --- /dev/null +++ b/jjb/yaml/verizoncloudplatform.com/openbook-database.yaml @@ -0,0 +1,20 @@ +--- +- 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: + - github + scm: + - git: + url: git@github.vcp.vzwnet.com:konstca/openbook-v4-ci.git + branches: + - master + builders: + - shell: | + ./build-docker-containers.sh database unstable diff --git a/jjb/yaml/verizoncloudplatform.com/openbook-ob-pipeline.yaml b/jjb/yaml/verizoncloudplatform.com/openbook-ob-pipeline.yaml new file mode 100644 index 0000000..a8ab511 --- /dev/null +++ b/jjb/yaml/verizoncloudplatform.com/openbook-ob-pipeline.yaml @@ -0,0 +1,136 @@ +--- +- project: + name: "openbook-ob-pipeline" + jobs: + - "{artifact}-{branch}-ob-pipeline": + artifact: "admin-api-server" + branch: "unstable" + tag: "4.1" + - "{artifact}-{branch}-ob-pipeline": + artifact: "admin-api-server" + branch: "develop" + tag: "4.0" + - "{artifact}-{branch}-ob-pipeline": + artifact: "admin-api-server" + branch: "stage" + tag: "4.0" + - "{artifact}-{branch}-ob-pipeline": + artifact: "admin-api-server" + branch: "master" + tag: "4.0" + - "{artifact}-{branch}-ob-pipeline": + artifact: "admin-web-ui" + branch: "unstable" + tag: "4.1" + - "{artifact}-{branch}-ob-pipeline": + artifact: "admin-web-ui" + branch: "develop" + tag: "4.0" + - "{artifact}-{branch}-ob-pipeline": + artifact: "admin-web-ui" + branch: "stage" + tag: "4.0" + - "{artifact}-{branch}-ob-pipeline": + artifact: "admin-web-ui" + branch: "master" + tag: "4.0" + - "{artifact}-{branch}-ob-pipeline": + artifact: "customer-api-server" + branch: "unstable" + tag: "4.1" + - "{artifact}-{branch}-ob-pipeline": + artifact: "customer-api-server" + branch: "develop" + tag: "4.0" + - "{artifact}-{branch}-ob-pipeline": + artifact: "customer-api-server" + branch: "stage" + tag: "4.0" + - "{artifact}-{branch}-ob-pipeline": + artifact: "customer-api-server" + branch: "master" + tag: "4.0" + - "{artifact}-{branch}-ob-pipeline": + artifact: "customer-web-ui" + branch: "unstable" + tag: "4.1" + - "{artifact}-{branch}-ob-pipeline": + artifact: "customer-web-ui" + branch: "develop" + tag: "4.0" + - "{artifact}-{branch}-ob-pipeline": + artifact: "customer-web-ui" + branch: "stage" + tag: "4.0" + - "{artifact}-{branch}-ob-pipeline": + artifact: "customer-web-ui" + branch: "master" + tag: "4.0" + - "{artifact}-{branch}-ob-pipeline": + artifact: "job-scheduler-server" + branch: "unstable" + tag: "4.1" + - "{artifact}-{branch}-ob-pipeline": + artifact: "job-scheduler-server" + branch: "develop" + tag: "4.0" + - "{artifact}-{branch}-ob-pipeline": + artifact: "job-scheduler-server" + branch: "stage" + tag: "4.0" + - "{artifact}-{branch}-ob-pipeline": + artifact: "job-scheduler-server" + branch: "master" + tag: "4.0" + - "{artifact}-{branch}-ob-pipeline": + artifact: "workflow-server" + branch: "unstable" + tag: "4.1" + - "{artifact}-{branch}-ob-pipeline": + artifact: "workflow-server" + branch: "develop" + tag: "4.0" + - "{artifact}-{branch}-ob-pipeline": + artifact: "workflow-server" + branch: "stage" + tag: "4.0" + - "{artifact}-{branch}-ob-pipeline": + artifact: "workflow-server" + branch: "master" + tag: "4.0" + +- job-template: + name: "{artifact}-{branch}-ob-pipeline" + project-type: pipeline + dsl: | + pipeline {{ + agent {{ + node {{ + label "openbook_v4" + customWorkspace "workspace/{artifact}" + }} + }} + stages {{ + stage("gradle") {{ + steps {{ + git(poll: false, branch: "{branch}", url: "git@github.com:Talligent/{artifact}.git") + sh(script: "/var/lib/jenkins/find_next_tag.sh \$(pwd) {artifact} {tag}") + sh(script: "./gradlew -PbuildNumber=\$(cat /tmp/newtag_{artifact}) -PbuildMode=buildProd -Dorg.gradle.daemon=false clean shadowJar") + stash(includes: "build/libs/*.jar", name: "jar") + }} + }} + stage("upload-jar") {{ + steps {{ + git(poll: false, branch: "master", url: "git@github.com:Talligent/deployment-scripts.git") + unstash(name: "jar") + sh(script: "ruby openbook/ruby/upload_jar.rb --webdav-url=${{WEBDAV_URL}} --webdav-username=${{WEBDAV_USERNAME}} --webdav-password=${{WEBDAV_PASSWORD}} --artifact={artifact} --branch={branch} --version=\$(cat /tmp/newtag_{artifact}) --filepath=build/libs/{artifact}.\$(cat /tmp/newtag_{artifact}).jar") + }} + }} + stage("docker-container") {{ + steps {{ + git(poll: false, branch: "master", url: "git@github.vcp.vzwnet.com:konstca/openbook-v4-ci.git") + sh(script: "./build-docker-containers.sh {artifact} {branch}") + }} + }} + }} + }} diff --git a/jjb/yaml/verizoncloudplatform.com/openbook.yaml b/jjb/yaml/verizoncloudplatform.com/openbook.yaml new file mode 100644 index 0000000..0eb9c3a --- /dev/null +++ b/jjb/yaml/verizoncloudplatform.com/openbook.yaml @@ -0,0 +1,67 @@ +--- +- project: + name: "openobok" + jobs: + - "openbook-{artifact}-{branch}": + artifact: "admin-api-server" + branch: "unstable" + - "openbook-{artifact}-{branch}": + artifact: "admin-api-server" + branch: "develop" + - "openbook-{artifact}-{branch}": + artifact: "customer-api-server" + branch: "unstable" + - "openbook-{artifact}-{branch}": + artifact: "customer-api-server" + branch: "develop" + - "openbook-{artifact}-{branch}": + artifact: "admin-web-ui" + branch: "unstable" + - "openbook-{artifact}-{branch}": + artifact: "admin-web-ui" + branch: "develop" + - "openbook-{artifact}-{branch}": + artifact: "customer-web-ui" + branch: "unstable" + - "openbook-{artifact}-{branch}": + artifact: "customer-web-ui" + branch: "develop" + - "openbook-{artifact}-{branch}": + artifact: "job-scheduler-server" + branch: "unstable" + - "openbook-{artifact}-{branch}": + artifact: "job-scheduler-server" + branch: "develop" + - "openbook-{artifact}-{branch}": + artifact: "workflow-server" + branch: "unstable" + - "openbook-{artifact}-{branch}": + artifact: "workflow-server" + branch: "develop" + - "openbook-{artifact}-{branch}": + artifact: "openbook-core" + branch: "unstable" + - "openbook-{artifact}-{branch}": + artifact: "openbook-core" + branch: "develop" + +- job-template: + name: "openbook-{artifact}-{branch}" + 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/{artifact}.git" + branches: + - "{branch}" + builders: + - trigger-builds: + - project: "{artifact}-{branch}-ob-pipeline" -- cgit v1.3