From 0493747f5d1b30008b4170b3d48080abfa224700 Mon Sep 17 00:00:00 2001 From: ckonstanski Date: Tue, 24 Oct 2017 18:27:27 -0600 Subject: make it work for all 4 git branches --- jjb/yaml/openbook-all-pipeline.yaml | 116 ++++++++++++++++++++---------------- 1 file changed, 63 insertions(+), 53 deletions(-) (limited to 'jjb/yaml/openbook-all-pipeline.yaml') diff --git a/jjb/yaml/openbook-all-pipeline.yaml b/jjb/yaml/openbook-all-pipeline.yaml index 1c5fbca..42ed780 100644 --- a/jjb/yaml/openbook-all-pipeline.yaml +++ b/jjb/yaml/openbook-all-pipeline.yaml @@ -1,60 +1,70 @@ --- -- job: - name: openbook-all-pipeline +- project: + name: "openbook-all-pipeline" + branch: + - "unstable" + - "develop" + - "stage" + - "master" + jobs: + - "openbook-all-{branch}-pipeline" + +- job-template: + name: "openbook-all-{branch}-pipeline" project-type: pipeline dsl: | - pipeline { - agent { - node { + pipeline {{ + agent {{ + node {{ label "master" - } - } - stages { - stage("checkout") { - agent { - node { + }} + }} + stages {{ + stage("checkout") {{ + agent {{ + node {{ label "openbook_v4" customWorkspace "workspace/openbook-all" - } - } - steps { - git(poll: false, branch: "unstable", url: "git@github.com:Talligent/openbook-core.git") - } - } - stage("database") { - steps { + }} + }} + steps {{ + git(poll: false, branch: "{branch}", url: "git@github.com:Talligent/openbook-core.git") + }} + }} + 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") - } - } - } - } + }} + }} + stage("admin-api-server") {{ + steps {{ + build(job: "admin-api-server-{branch}-pipeline") + }} + }} + stage("customer-api-server") {{ + steps {{ + build(job: "customer-api-server-{branch}-pipeline") + }} + }} + stage("admin-web-ui") {{ + steps {{ + build(job: "admin-web-ui-{branch}-pipeline") + }} + }} + stage("customer-web-ui") {{ + steps {{ + build(job: "customer-web-ui-{branch}-pipeline") + }} + }} + stage("job-scheduler-server") {{ + steps {{ + build(job: "job-scheduler-server-{branch}-pipeline") + }} + }} + stage("workflow-server") {{ + steps {{ + build(job: "workflow-server-{branch}-pipeline") + }} + }} + }} + }} -- cgit v1.3