diff options
| author | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-11-28 09:40:36 -0700 |
|---|---|---|
| committer | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-11-28 09:40:36 -0700 |
| commit | c619c4286fd83e49a6d976613e26691568c2a428 (patch) | |
| tree | a70988a7deab90aa7a9b491575b77656c3378baa /jjb/yaml | |
| parent | 4d56db6c4fa8861d0b2fb4ff12ed94548a02e68f (diff) | |
Openbook CI: jenkins jobs for stopping, starting, restarting openbook
Issue: IS-36
Diffstat (limited to 'jjb/yaml')
| -rw-r--r-- | jjb/yaml/ob-ctl.yaml | 60 |
1 files changed, 60 insertions, 0 deletions
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} |
