summaryrefslogtreecommitdiff
path: root/jjb/yaml/pippiandcarlos.com/ob-deploy-branch.yaml
blob: 3fa81ce5308209afa7e4fa6612d8521e0630a9df (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
---
- project:
    name: "ob-deploy-branch"
    branch:
      - "unstable"
      - "unstable_db"
      - "develop"
      - "develop_db"
      - "stage"
      - "stage_db"
      - "master"
      - "master_db"
    jobs:
      - "ob-deploy-branch-{branch}"

- project:
    name: "ob-autodeploy-branch"
    branch:
      - "unstable"
      - "develop"
    jobs:
      - "ob-autodeploy-branch-{branch}"

- job-template:
    name: "ob-deploy-branch-{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"
          block_level: 'GLOBAL'
          queue-scanning: 'BUILDABLE'
    scm:
      - git:
          url: git@pippiandcarlos.com:repos/openbook-v4-installer.git
          branches:
            - master
    builders:
      - shell: |
          ./ob-deploy-branch.sh {branch}

- job-template:
    name: "ob-autodeploy-branch-{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"
          block_level: 'GLOBAL'
          queue-scanning: 'BUILDABLE'
    triggers:
      - reverse:
          jobs:
            - "admin-api-server-{branch}-ob-pipeline"
            - "admin-web-ui-{branch}-ob-pipeline"
            - "customer-api-server-{branch}-ob-pipeline"
            - "customer-web-ui-{branch}-ob-pipeline"
            - "job-scheduler-server-{branch}-ob-pipeline"
            - "workflow-server-{branch}-ob-pipeline"
    scm:
      - git:
          url: git@pippiandcarlos.com:repos/openbook-v4-installer.git
          branches:
            - master
    builders:
      - shell: |
          ./ob-deploy-branch.sh {branch}