summaryrefslogtreecommitdiff
path: root/yaml/ckons.local/app-ctl.yaml
blob: 55f1a2586fe82c192d04c9673f5e6a8fd6389ef4 (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
---
- project:
    name: "app-ctl"
    jobs:
      - "{app}-ctl-{target}-{action}":
          app: "ldapadmin"
          target: "sphinkpad"
          action: "stop"
      - "{app}-ctl-{target}-{action}":
          app: "ldapadmin"
          target: "sphinkpad"
          action: "start"
      - "{app}-ctl-{target}-{action}":
          app: "ldapadmin"
          target: "ns"
          action: "stop"
      - "{app}-ctl-{target}-{action}":
          app: "ldapadmin"
          target: "ns"
          action: "start"
      - "{app}-ctl-{target}-{action}":
          app: "wro"
          target: "sphinkpad"
          action: "stop"
      - "{app}-ctl-{target}-{action}":
          app: "wro"
          target: "sphinkpad"
          action: "start"
      - "{app}-ctl-{target}-{action}":
          app: "wro"
          target: "ns"
          action: "stop"
      - "{app}-ctl-{target}-{action}":
          app: "wro"
          target: "ns"
          action: "start"

- job-template:
    name: "{app}-ctl-{target}-{action}"
    project-type: freestyle
    node: "ansible"
    properties:
      - build-discarder:
          num-to-keep: 1
          artifact-days-to-keep: 0
      - build-blocker:
          use-build-blocker: true
          blocking-jobs:
            - "{app}.*pipeline"
            - "{app}-deploy.*"
            - "{app}-autodeploy.*"
          block_level: 'GLOBAL'
          queue-scanning: 'BUILDABLE'
    scm:
      - git:
          url: "git@ns.ckons.local:repos/{app}-installer.git"
          branches:
            - master
    builders:
      - shell: |
          ./{app}-ctl.sh {target} {action}