summaryrefslogtreecommitdiff
path: root/jjb/yaml/verizoncloudplatform.com/ob-ctl.yaml
blob: dbfae0fdb05fb7209553900d58582b00f9c18223 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
---
- project:
    name: "ob-ctl"
    jobs:
      - "ob-ctl-{action}-{branch}":
          branch: "unstable"
          action: "stop"
      - "ob-ctl-{action}-{branch}":
          branch: "unstable"
          action: "start"
      - "ob-ctl-{action}-{branch}":
          branch: "unstable"
          action: "restart"
      - "ob-ctl-{action}-{branch}":
          branch: "unstable_db"
          action: "stop"
      - "ob-ctl-{action}-{branch}":
          branch: "unstable_db"
          action: "start"
      - "ob-ctl-{action}-{branch}":
          branch: "unstable_db"
          action: "restart"
      - "ob-ctl-{action}-{branch}":
          branch: "develop"
          action: "stop"
      - "ob-ctl-{action}-{branch}":
          branch: "develop"
          action: "start"
      - "ob-ctl-{action}-{branch}":
          branch: "develop"
          action: "restart"
      - "ob-ctl-{action}-{branch}":
          branch: "develop_db"
          action: "stop"
      - "ob-ctl-{action}-{branch}":
          branch: "develop_db"
          action: "start"
      - "ob-ctl-{action}-{branch}":
          branch: "develop_db"
          action: "restart"
      - "ob-ctl-{action}-{branch}":
          branch: "stage"
          action: "stop"
      - "ob-ctl-{action}-{branch}":
          branch: "stage"
          action: "start"
      - "ob-ctl-{action}-{branch}":
          branch: "stage"
          action: "restart"
      - "ob-ctl-{action}-{branch}":
          branch: "stage_db"
          action: "stop"
      - "ob-ctl-{action}-{branch}":
          branch: "stage_db"
          action: "start"
      - "ob-ctl-{action}-{branch}":
          branch: "stage_db"
          action: "restart"
      - "ob-ctl-{action}-{branch}":
          branch: "master"
          action: "stop"
      - "ob-ctl-{action}-{branch}":
          branch: "master"
          action: "start"
      - "ob-ctl-{action}-{branch}":
          branch: "master"
          action: "restart"
      - "ob-ctl-{action}-{branch}":
          branch: "master_db"
          action: "stop"
      - "ob-ctl-{action}-{branch}":
          branch: "master_db"
          action: "start"
      - "ob-ctl-{action}-{branch}":
          branch: "master_db"
          action: "restart"
      - "ob-ctl-{action}-{branch}":
          branch: "v3_lab_db"
          action: "stop"
      - "ob-ctl-{action}-{branch}":
          branch: "v3_lab_db"
          action: "start"
      - "ob-ctl-{action}-{branch}":
          branch: "v3_lab_db"
          action: "restart"
      - "ob-ctl-{action}-{branch}":
          branch: "v3_staging_db"
          action: "stop"
      - "ob-ctl-{action}-{branch}":
          branch: "v3_staging_db"
          action: "start"
      - "ob-ctl-{action}-{branch}":
          branch: "v3_staging_db"
          action: "restart"
      - "ob-ctl-{action}-{branch}":
          branch: "v3_prod_db"
          action: "stop"
      - "ob-ctl-{action}-{branch}":
          branch: "v3_prod_db"
          action: "start"
      - "ob-ctl-{action}-{branch}":
          branch: "v3_prod_db"
          action: "restart"

- job-template:
    name: "ob-ctl-{action}-{branch}"
    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.*"
            - "ob-autodeploy-branch.*"
          block_level: 'GLOBAL'
          queue-scanning: 'BUILDABLE'
    parameters:
      - string:
          name: OPENBOOK_JAVA_OPTS
          description: "Command-line options to the java container docker scripts"
    scm:
      - git:
          url: git@github.vcp.vzwnet.com:konstca/openbook-v4-installer.git
          branches:
            - master
    builders:
      - shell: |
          ./ob-ctl.sh {branch} {action} ${{OPENBOOK_JAVA_OPTS}}