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 --- jjb/yaml/glance-gateway-if-pipeline.yaml | 37 ------ jjb/yaml/glance-gateway.yaml | 26 ---- jjb/yaml/image-foundry-if-pipeline.yaml | 37 ------ jjb/yaml/image-foundry.yaml | 40 ------ jjb/yaml/ob-ctl.yaml | 65 ---------- jjb/yaml/ob-deploy-branch.yaml | 43 ------- jjb/yaml/openbook-all-ob-pipeline.yaml | 75 ------------ jjb/yaml/openbook-baseimage.yaml | 20 --- jjb/yaml/openbook-core-ob-pipeline.yaml | 55 --------- jjb/yaml/openbook-database.yaml | 20 --- jjb/yaml/openbook-ob-pipeline.yaml | 136 --------------------- jjb/yaml/openbook.yaml | 67 ---------- .../glance-gateway-if-pipeline.yaml | 37 ++++++ jjb/yaml/pippiandcarlos.com/glance-gateway.yaml | 27 ++++ .../image-foundry-if-pipeline.yaml | 37 ++++++ jjb/yaml/pippiandcarlos.com/image-foundry.yaml | 42 +++++++ jjb/yaml/pippiandcarlos.com/ob-ctl.yaml | 65 ++++++++++ jjb/yaml/pippiandcarlos.com/ob-deploy-branch.yaml | 43 +++++++ .../openbook-all-ob-pipeline.yaml | 75 ++++++++++++ .../pippiandcarlos.com/openbook-baseimage.yaml | 21 ++++ .../openbook-core-ob-pipeline.yaml | 55 +++++++++ jjb/yaml/pippiandcarlos.com/openbook-database.yaml | 21 ++++ .../pippiandcarlos.com/openbook-ob-pipeline.yaml | 136 +++++++++++++++++++++ jjb/yaml/pippiandcarlos.com/openbook.yaml | 67 ++++++++++ .../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 ++++++++++ 36 files changed, 1247 insertions(+), 621 deletions(-) delete mode 100644 jjb/yaml/glance-gateway-if-pipeline.yaml delete mode 100644 jjb/yaml/glance-gateway.yaml delete mode 100644 jjb/yaml/image-foundry-if-pipeline.yaml delete mode 100644 jjb/yaml/image-foundry.yaml delete mode 100644 jjb/yaml/ob-ctl.yaml delete mode 100644 jjb/yaml/ob-deploy-branch.yaml delete mode 100644 jjb/yaml/openbook-all-ob-pipeline.yaml delete mode 100644 jjb/yaml/openbook-baseimage.yaml delete mode 100644 jjb/yaml/openbook-core-ob-pipeline.yaml delete mode 100644 jjb/yaml/openbook-database.yaml delete mode 100644 jjb/yaml/openbook-ob-pipeline.yaml delete mode 100644 jjb/yaml/openbook.yaml create mode 100644 jjb/yaml/pippiandcarlos.com/glance-gateway-if-pipeline.yaml create mode 100644 jjb/yaml/pippiandcarlos.com/glance-gateway.yaml create mode 100644 jjb/yaml/pippiandcarlos.com/image-foundry-if-pipeline.yaml create mode 100644 jjb/yaml/pippiandcarlos.com/image-foundry.yaml create mode 100644 jjb/yaml/pippiandcarlos.com/ob-ctl.yaml create mode 100644 jjb/yaml/pippiandcarlos.com/ob-deploy-branch.yaml create mode 100644 jjb/yaml/pippiandcarlos.com/openbook-all-ob-pipeline.yaml create mode 100644 jjb/yaml/pippiandcarlos.com/openbook-baseimage.yaml create mode 100644 jjb/yaml/pippiandcarlos.com/openbook-core-ob-pipeline.yaml create mode 100644 jjb/yaml/pippiandcarlos.com/openbook-database.yaml create mode 100644 jjb/yaml/pippiandcarlos.com/openbook-ob-pipeline.yaml create mode 100644 jjb/yaml/pippiandcarlos.com/openbook.yaml 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') diff --git a/jjb/yaml/glance-gateway-if-pipeline.yaml b/jjb/yaml/glance-gateway-if-pipeline.yaml deleted file mode 100644 index 98ca417..0000000 --- a/jjb/yaml/glance-gateway-if-pipeline.yaml +++ /dev/null @@ -1,37 +0,0 @@ ---- -- 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/glance-gateway.yaml b/jjb/yaml/glance-gateway.yaml deleted file mode 100644 index f56ad24..0000000 --- a/jjb/yaml/glance-gateway.yaml +++ /dev/null @@ -1,26 +0,0 @@ ---- -- 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/image-foundry-if-pipeline.yaml b/jjb/yaml/image-foundry-if-pipeline.yaml deleted file mode 100644 index 119fca4..0000000 --- a/jjb/yaml/image-foundry-if-pipeline.yaml +++ /dev/null @@ -1,37 +0,0 @@ ---- -- 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/image-foundry.yaml b/jjb/yaml/image-foundry.yaml deleted file mode 100644 index db35f51..0000000 --- a/jjb/yaml/image-foundry.yaml +++ /dev/null @@ -1,40 +0,0 @@ ---- -- 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/ob-ctl.yaml b/jjb/yaml/ob-ctl.yaml deleted file mode 100644 index b12ec55..0000000 --- a/jjb/yaml/ob-ctl.yaml +++ /dev/null @@ -1,65 +0,0 @@ ---- -- 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/ob-deploy-branch.yaml b/jjb/yaml/ob-deploy-branch.yaml deleted file mode 100644 index ef7c736..0000000 --- a/jjb/yaml/ob-deploy-branch.yaml +++ /dev/null @@ -1,43 +0,0 @@ ---- -- 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/openbook-all-ob-pipeline.yaml b/jjb/yaml/openbook-all-ob-pipeline.yaml deleted file mode 100644 index f81f8ab..0000000 --- a/jjb/yaml/openbook-all-ob-pipeline.yaml +++ /dev/null @@ -1,75 +0,0 @@ ---- -- 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/openbook-baseimage.yaml b/jjb/yaml/openbook-baseimage.yaml deleted file mode 100644 index d42cd60..0000000 --- a/jjb/yaml/openbook-baseimage.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -- 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/openbook-core-ob-pipeline.yaml b/jjb/yaml/openbook-core-ob-pipeline.yaml deleted file mode 100644 index 32669ab..0000000 --- a/jjb/yaml/openbook-core-ob-pipeline.yaml +++ /dev/null @@ -1,55 +0,0 @@ ---- -- 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/openbook-database.yaml b/jjb/yaml/openbook-database.yaml deleted file mode 100644 index dd5bcda..0000000 --- a/jjb/yaml/openbook-database.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -- 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/openbook-ob-pipeline.yaml b/jjb/yaml/openbook-ob-pipeline.yaml deleted file mode 100644 index a8ab511..0000000 --- a/jjb/yaml/openbook-ob-pipeline.yaml +++ /dev/null @@ -1,136 +0,0 @@ ---- -- 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/openbook.yaml b/jjb/yaml/openbook.yaml deleted file mode 100644 index 0eb9c3a..0000000 --- a/jjb/yaml/openbook.yaml +++ /dev/null @@ -1,67 +0,0 @@ ---- -- 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" diff --git a/jjb/yaml/pippiandcarlos.com/glance-gateway-if-pipeline.yaml b/jjb/yaml/pippiandcarlos.com/glance-gateway-if-pipeline.yaml new file mode 100644 index 0000000..2353d68 --- /dev/null +++ b/jjb/yaml/pippiandcarlos.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@pippiandcarlos.com:repos/glance-gateway.git") + } + } + stage("update-images") { + agent { + node { + label "glance_gateway" + customWorkspace "workspace/image-foundry" + } + } + steps { + git(poll: false, branch: "master", url: "git@pippiandcarlos.com:repos/image-foundry.git") + sh(script: "./glance-gateway.sh") + } + } + } + } diff --git a/jjb/yaml/pippiandcarlos.com/glance-gateway.yaml b/jjb/yaml/pippiandcarlos.com/glance-gateway.yaml new file mode 100644 index 0000000..47e7231 --- /dev/null +++ b/jjb/yaml/pippiandcarlos.com/glance-gateway.yaml @@ -0,0 +1,27 @@ +--- +- 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: + - pollscm: + cron: "H/5 * * * *" + scm: + - git: + url: "git@pippiandcarlos.com:repos/glance-gateway.git" + branches: + - "master" + builders: + - trigger-builds: + - project: "glance-gateway-gg-pipeline" diff --git a/jjb/yaml/pippiandcarlos.com/image-foundry-if-pipeline.yaml b/jjb/yaml/pippiandcarlos.com/image-foundry-if-pipeline.yaml new file mode 100644 index 0000000..1d5f023 --- /dev/null +++ b/jjb/yaml/pippiandcarlos.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-pippiandcarlos" + } + } + steps { + git(poll: false, branch: "master", url: "git@pippiandcarlos.com:repos/image-foundry-pippiandcarlos.git") + } + } + stage("diskimage-builder") { + agent { + node { + label "glance_gateway" + customWorkspace "workspace/image-foundry" + } + } + steps { + git(poll: false, branch: "master", url: "git@pippiandcarlos.com:repos/image-foundry.git") + sh(script: "./image-foundry.sh") + } + } + } + } diff --git a/jjb/yaml/pippiandcarlos.com/image-foundry.yaml b/jjb/yaml/pippiandcarlos.com/image-foundry.yaml new file mode 100644 index 0000000..9fbaff2 --- /dev/null +++ b/jjb/yaml/pippiandcarlos.com/image-foundry.yaml @@ -0,0 +1,42 @@ +--- +- 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: + - pollscm: + cron: "H/5 * * * *" + scm: + - git: + url: "git@pippiandcarlos.com:repos/image-foundry.git" + branches: + - "master" + builders: + - trigger-builds: + - project: "image-foundry-if-pipeline" + +- job: + name: "image-foundry-pippiandarlos" + project-type: freestyle + node: image_foundry + 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@pippiandcarlos.com:repos/image-foundry-pippiandcarlos.git" + branches: + - "master" + builders: + - trigger-builds: + - project: "image-foundry-if-pipeline" diff --git a/jjb/yaml/pippiandcarlos.com/ob-ctl.yaml b/jjb/yaml/pippiandcarlos.com/ob-ctl.yaml new file mode 100644 index 0000000..37ac158 --- /dev/null +++ b/jjb/yaml/pippiandcarlos.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@pippiandcarlos.com:repos/openbook-v4-installer.git + branches: + - master + builders: + - shell: | + ./ob-ctl.sh {branch} {action} diff --git a/jjb/yaml/pippiandcarlos.com/ob-deploy-branch.yaml b/jjb/yaml/pippiandcarlos.com/ob-deploy-branch.yaml new file mode 100644 index 0000000..044d871 --- /dev/null +++ b/jjb/yaml/pippiandcarlos.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@pippiandcarlos.com:repos/openbook-v4-installer.git + branches: + - master + builders: + - shell: | + ./ob-deploy-branch.sh {branch} diff --git a/jjb/yaml/pippiandcarlos.com/openbook-all-ob-pipeline.yaml b/jjb/yaml/pippiandcarlos.com/openbook-all-ob-pipeline.yaml new file mode 100644 index 0000000..f81f8ab --- /dev/null +++ b/jjb/yaml/pippiandcarlos.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/pippiandcarlos.com/openbook-baseimage.yaml b/jjb/yaml/pippiandcarlos.com/openbook-baseimage.yaml new file mode 100644 index 0000000..2ab74bb --- /dev/null +++ b/jjb/yaml/pippiandcarlos.com/openbook-baseimage.yaml @@ -0,0 +1,21 @@ +--- +- 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: + - pollscm: + cron: "H/5 * * * *" + scm: + - git: + url: git@pippiandcarlos.com:repos/openbook-v4-ci.git + branches: + - master + builders: + - shell: | + ./build-docker-containers.sh baseimage unstable diff --git a/jjb/yaml/pippiandcarlos.com/openbook-core-ob-pipeline.yaml b/jjb/yaml/pippiandcarlos.com/openbook-core-ob-pipeline.yaml new file mode 100644 index 0000000..32669ab --- /dev/null +++ b/jjb/yaml/pippiandcarlos.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/pippiandcarlos.com/openbook-database.yaml b/jjb/yaml/pippiandcarlos.com/openbook-database.yaml new file mode 100644 index 0000000..70594de --- /dev/null +++ b/jjb/yaml/pippiandcarlos.com/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@pippiandcarlos.com:repos/openbook-v4-ci.git + branches: + - master + builders: + - shell: | + ./build-docker-containers.sh database unstable diff --git a/jjb/yaml/pippiandcarlos.com/openbook-ob-pipeline.yaml b/jjb/yaml/pippiandcarlos.com/openbook-ob-pipeline.yaml new file mode 100644 index 0000000..cd09544 --- /dev/null +++ b/jjb/yaml/pippiandcarlos.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@pippiandcarlos.com:repos/openbook-v4-ci.git") + sh(script: "./build-docker-containers.sh {artifact} {branch}") + }} + }} + }} + }} diff --git a/jjb/yaml/pippiandcarlos.com/openbook.yaml b/jjb/yaml/pippiandcarlos.com/openbook.yaml new file mode 100644 index 0000000..0eb9c3a --- /dev/null +++ b/jjb/yaml/pippiandcarlos.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" 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