--- - project: name: "ob-promote-branch" jobs: - "ob-promote-branch-{src}-{dest}-ob-pipeline": src: "unstable" dest: "develop" token: "C1E4270DBF346C1079D9CB2D9A798F15" - "ob-promote-branch-{src}-{dest}-ob-pipeline": src: "develop" dest: "stage" token: "E33114B6B8BDFA42FDCF0AB3E7C01B04" - "ob-promote-branch-{src}-{dest}-ob-pipeline": src: "stage" dest: "master" token: "A11B7C4C3AB3E3E77A2C8AADEAB6FC97" - job-template: name: "ob-promote-branch-{src}-{dest}-ob-pipeline" project-type: pipeline auth-token: "{token}" dsl: | pipeline {{ agent {{ node {{ label "openbook_v4" customWorkspace "workspace/ob-promote-branch-{src}-{dest}" }} }} stages {{ stage("openbook-core") {{ steps {{ git(poll: false, branch: "{dest}", url: "git@github.com:Talligent/openbook-core.git") sh(script: "git push origin remotes/origin/{src}:{dest}") }} }} stage("admin-api-server") {{ steps {{ git(poll: false, branch: "{dest}", url: "git@github.com:Talligent/admin-api-server.git") sh(script: "git push origin remotes/origin/{src}:{dest}") }} }} stage("admin-web-ui") {{ steps {{ git(poll: false, branch: "{dest}", url: "git@github.com:Talligent/admin-web-ui.git") sh(script: "git push origin remotes/origin/{src}:{dest}") }} }} stage("customer-api-server") {{ steps {{ git(poll: false, branch: "{dest}", url: "git@github.com:Talligent/customer-api-server.git") sh(script: "git push origin remotes/origin/{src}:{dest}") }} }} stage("customer-web-ui") {{ steps {{ git(poll: false, branch: "{dest}", url: "git@github.com:Talligent/customer-web-ui.git") sh(script: "git push origin remotes/origin/{src}:{dest}") }} }} stage("job-scheduler-server") {{ steps {{ git(poll: false, branch: "{dest}", url: "git@github.com:Talligent/job-scheduler-server.git") sh(script: "git push origin remotes/origin/{src}:{dest}") }} }} stage("workflow-server") {{ steps {{ git(poll: false, branch: "{dest}", url: "git@github.com:Talligent/workflow-server.git") sh(script: "git push origin remotes/origin/{src}:{dest}") }} }} }} }}