From c619c4286fd83e49a6d976613e26691568c2a428 Mon Sep 17 00:00:00 2001 From: Carlos Konstanski Date: Tue, 28 Nov 2017 09:40:36 -0700 Subject: Openbook CI: jenkins jobs for stopping, starting, restarting openbook Issue: IS-36 --- jjb/yaml/ob-ctl.yaml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 jjb/yaml/ob-ctl.yaml (limited to 'jjb') diff --git a/jjb/yaml/ob-ctl.yaml b/jjb/yaml/ob-ctl.yaml new file mode 100644 index 0000000..15db290 --- /dev/null +++ b/jjb/yaml/ob-ctl.yaml @@ -0,0 +1,60 @@ +--- +- project: + name: "ob-ctl" + jobs: + - "ob-ctl-{branch}-{action}": + branch: "unstable" + action: "stop" + - "ob-ctl-{branch}-{action}": + branch: "unstable" + action: "start" + - "ob-ctl-{branch}-{action}": + branch: "unstable" + action: "restart" + - "ob-ctl-{branch}-{action}": + branch: "develop" + action: "stop" + - "ob-ctl-{branch}-{action}": + branch: "develop" + action: "start" + - "ob-ctl-{branch}-{action}": + branch: "develop" + action: "restart" + - "ob-ctl-{branch}-{action}": + branch: "stage" + action: "stop" + - "ob-ctl-{branch}-{action}": + branch: "stage" + action: "start" + - "ob-ctl-{branch}-{action}": + branch: "stage" + action: "restart" + - "ob-ctl-{branch}-{action}": + branch: "master" + action: "stop" + - "ob-ctl-{branch}-{action}": + branch: "master" + action: "start" + - "ob-ctl-{branch}-{action}": + branch: "master" + action: "restart" + +- job-template: + name: "ob-ctl-{branch}-{action}" + 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' + builders: + - shell: | + ./ob-ctl.sh {branch} {action} -- cgit v1.3