diff options
Diffstat (limited to 'jjb')
| -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} |
